News for hackers. Stuff that matters.
Re:Rust 1.0: Status report and final timeline by aturon on Friday February 13, 2015 @03:23PM (#9046956)
> That said, I'm not sure what the exact reason was for choosing the syntax, as that was before my time.

I think the reason is just that it's very concise, and lightweight closure syntax makes things like `Option::map` feel like first-class parts of the language. The closure you pass just sort of seamlessly "blends in".

Note that having especially sugary here is not so uncommon, for example Haskell has `\x -> blah` for Rust's `|x| blah`.

I'm personally very happy that the closure syntax is as concise as it is.

There are no comments on this comment yet.