You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently every function define in a contract is a subroutine (thus require a callsub, proto, and retsub opcode call). It would be nice to allow anonymous functions to be defined which simply generates the TEAL in-place. This would be similar to how PyTeal Expr can be stored in a python variable.
Variable scoping (#139) definitely needs to be considered when implementing this and should probably be addressed before attempting to implement this.
The text was updated successfully, but these errors were encountered:
Currently every function define in a contract is a subroutine (thus require a
callsub
,proto
, andretsub
opcode call). It would be nice to allow anonymous functions to be defined which simply generates the TEAL in-place. This would be similar to how PyTealExpr
can be stored in a python variable.Variable scoping (#139) definitely needs to be considered when implementing this and should probably be addressed before attempting to implement this.
The text was updated successfully, but these errors were encountered: