Skip to content

Conversation

@RunDevelopment
Copy link
Member

This adds syntax for logical operations in Navi. So the following code is now valid:

if a < b and b < c {
    error("Wow. Somethign went wrong!");
else {
    let value = if not cond { 5 } else { 6 };
    SomeType { value: value }
}

This should simplify a lot of code since we finally won't have to write bool::and(a < b, b < c) anymore.

@RunDevelopment RunDevelopment merged commit aeb1fb1 into main May 9, 2024
@RunDevelopment RunDevelopment deleted the logical-syntax branch May 9, 2024 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants