Skip to content

feat: Fast return conditions #88

Description

@Zffu

Allow for a faster way of writing conditions for ret statements.

For example:

func main() s32 {
    var s32 myInt = ...;
    ret myInt [x -> x > 64]
}

This will return myInt only if the condition defined on the label x is true. If the condition fails, the function will continue as normal. Additionally, the binding name can be skipped as it is x by default:

func main() s32 {
    var s32 myInt = ...;
    ret myInt [x > 64]
}

Activity

  1. self-assigned this
    on Apr 20, 2026
  2. added theissue type on Apr 20, 2026
  3. moved this to Todo this release in Quickfallon Apr 20, 2026
  4. moved this from Todo this release to Todo Later in Quickfallon May 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

  • Status
    Todo Later

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions