News for hackers. Stuff that matters.
Re:Things Rust shipped without by carterehsmith on Friday July 03, 2015 @08:30PM (#9828624)
> foo.map(|x| x + 1) is so much nicer than foo.map(|x| { return x + 1; })

"Nicer" is a subjective thing. BTW in the trivial case above one may judge this or that to be nicer, but in a large method, 'return func(a,b,c)' is obvious, whereas looking at 'func(a,b,c)' it is super non-obvious that the value is being returned.

Re:Things Rust shipped without by nbouscal on Friday July 03, 2015 @11:42PM (#9829080)
It's not at all non-obvious if you learn the language. It's also not non-obvious if you learn any of the myriad other languages with the same semantics (including popular web languages like Ruby and CoffeeScript).