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
RFC idea: let ... else, easy early returns when pattern matching
35
3021
January 3, 2020
[Pre-Pre-RFC] Reviving Refutable Let [Runoff]
language design
100
9011
March 25, 2019
Clean conditional return statements
language design
25
3208
June 3, 2023
Pre-RFC: Allow pattern matching after guard clause
language design
7
1948
March 25, 2019
Making if let notation usable in more kinds of conditionals
language design
9
1885
March 25, 2019