Rust Internals
Swift-like guard statement
language design
m-ronchi
October 2, 2024, 1:37pm
2
ugly, but
let true = some_condition else { return; };
works
6 Likes
show post in topic
Related topics
Topic
Replies
Views
Activity
If-let early return on non-match [Pre-Pre-RFC Discussion]
language design
18
2706
June 30, 2019
Clean conditional return statements
language design
25
2753
June 3, 2023
`if !cond { return ret; }` vs `ensure!(cond, ret)`
language design
16
1970
November 28, 2022
Syntactic sugar for `if x { return | break | continue }`
language design
35
1839
October 6, 2023
[IDEA] `.catch`
language design
3
738
August 27, 2023