PyTeal vs TEAL
- @2022-02-21 (started: 2022-02-20)
- This was written when I tried to find some PyTeal Examples(#TODO:link). Like Tinyman contract
- There's no smart contract in the repos of tinymanorg
- PyTeal is almost strictly better than TEAL, for these reasons
- More code readability, hence also debug
- Available in more IDE (no auto completion for TEAL in VSCode yet)
- Familiar Grammar(Syntax)
- We all code in PyTeal
- TEAL as a stack language, has only one advantage: See the call stack in debugger.
- Ideal situation / Possible improvement:
- Have a PyTeal -> TEAL Map(like TS->JS) showing which line from python compiled to which line of TEAL.
- Run PyTeal and debug directly in Python. (maybe with another class like PyTeal, like PyTeal_Runner)