algorand / algorand/go-algorand

New Opcodes request

Ouverte
#6,111 0 commentaires 0 réactions 1 personne assignée Réclamée par @jannotti Voir sur GitHub
new-feature-request
Langage dominant
Go
Étoiles
1.4k
Forks
537
Merge moyen
1 j 7 h
PR mergées (30 j)
18

Description

## 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.

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.