algorand / algorand/go-algorand

New Opcodes request

オープン
#6,111 コメント 0 件 リアクション 0 件 担当者 1 名 @jannotti が担当を希望しています GitHub で見る
new-feature-request
主要言語
Go
スター
1.4k
フォーク
537
平均マージ
1日 7時間
マージ済み PR(30日)
18

説明

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

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。