Skip to content

Consider adding break and continue keywords in loops #396

Description

@rkalis

For break and continue we most likely want to wrap whatever code comes after the conditional in an if-block, where if break or continue gets called, a "skip" flag is set to true, causing the if-statement to be skipped. In case of break, a "break" flag should also be set to true, which gets evaluated as part of the OP_UNTIL condition.

However, this method likely adds quite a bit of complexity and overhead, so we're not sure if and when we are going to add this.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    cashc-compilerRelates to the cashc compilerenhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions