this post was submitted on 01 Sep 2025
31 points (94.3% liked)
Rust
7466 readers
31 users here now
Welcome to the Rust community! This is a place to discuss about the Rust programming language.
Wormhole
Credits
- The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Yeah, they could literally have the same syntax as now, but w/
letwhen introducing a variable. So:Or you could put the
letbefore theSome(...)aslet Some(l), which allows us to keep the currentif let Some(...) = ...syntax. Either of those would feel more consistent than the current implementation.