Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inline/anon function support #140

Open
joe-p opened this issue Oct 4, 2023 · 0 comments
Open

Inline/anon function support #140

joe-p opened this issue Oct 4, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@joe-p
Copy link
Contributor

joe-p commented Oct 4, 2023

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.

@joe-p joe-p added the enhancement New feature or request label Oct 4, 2023
@joe-p joe-p changed the title Anon function support Inline function support Oct 13, 2023
@joe-p joe-p changed the title Inline function support Inline/anon function support Oct 13, 2023
@joe-p joe-p added this to TEALScript Nov 4, 2023
@joe-p joe-p moved this to Todo in TEALScript Dec 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: TODO
Development

No branches or pull requests

1 participant