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

New Opcodes request #6111

Open
emg110 opened this issue Aug 25, 2024 · 0 comments
Open

New Opcodes request #6111

emg110 opened this issue Aug 25, 2024 · 0 comments
Assignees
Labels
new-feature-request Feature request that needs triage

Comments

@emg110
Copy link
Contributor

emg110 commented Aug 25, 2024

Problem

The problem is that conditional sub_routine calling which helps have much cleaner and fewer lines of teal code, is currently missing in TEAL.

Solution

2 new opcodes: callsubz and callsubnz will help creating much more optimized and less source code in TEAL.

Dependencies

No dependencies . Also as the callsub, bz and bnz opcode functionalities are there and these new opcodes need only to add a conditional (using top of stack value A) check before calling subroutine. the implementation does not create any condition out of the current context and available mentioned opcodes functionalities.

Urgency

Pretty urgent IMHO since it even helps higher level languages for teal as well to offer more complex conditional flows.

@emg110 emg110 added the new-feature-request Feature request that needs triage label Aug 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-feature-request Feature request that needs triage
Projects
None yet
Development

No branches or pull requests

2 participants