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 the repeat opcode in miden assembly requires the developer to specify the number of loop iterations:
repeat.5
# 5 loop iterations
end
However, it would be extremely useful to allow the number of loop iterations to be set programmatically. For example:
push.5
repeat
# 5 loop iterations
end
Why is this feature needed?
I know that there is a while opcode where a similar functionality could be achieved, however, allowing the repeat opcode to be set programmatically would be useful.
The text was updated successfully, but these errors were encountered:
Interesting! I think what will need to happen is that the assembler will need to transform this into a while loop under the hood. Not sure yet how easy it would be.
Feature description
Currently the repeat opcode in miden assembly requires the developer to specify the number of loop iterations:
However, it would be extremely useful to allow the number of loop iterations to be set programmatically. For example:
Why is this feature needed?
I know that there is a while opcode where a similar functionality could be achieved, however, allowing the repeat opcode to be set programmatically would be useful.
The text was updated successfully, but these errors were encountered: