Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
dlisboa
3y ago
0 comments
Save
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
1 comments · 1 top-level
top
newest
oldest
lolinder
3y 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