Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
dlisboa
2y ago
0 comments
Share
Not a Rust programmer, but I took the Rust code from the Rust book. Admittedly I didn’t read the whole chapter, perhaps they talk idioms later.
0 comments
default
newest
oldest
lolinder
2y ago
You just needed to go down a bit further [0]. They understandably didn't want to introduce syntactic sugar until after they'd introduced the syntax it desugars into.
[0]
https://doc.rust-lang.org/book/ch09-02-recoverable-errors-wi...
j
/
k
navigate · click thread line to collapse