Count me alongside the fans of the current style. The explicit braces are nice (if Rust is going to use braces, it shouldn't be ashamed about it!), and the bars make it easy to visually identify closures. Plus, the notation is instantly familiar to anyone who's seen Ruby.
On Wed, Apr 18, 2012 at 1:35 AM, Grahame Bowland <[email protected]>wrote: > Hi Patrick > > Thanks for the visual example. I prefer the old { |x| } style. It might > look slightly ugly but glancing upwards from a piece of code I find it much > easier to spot that a given pair of braces are a block closure. I guess || > sticks out like a pair of thumbs, which is useful. > > Cheers > Grahame > > > On 18 April 2012 10:46, Patrick Walton <[email protected]> wrote: > >> Here's a little before-and-after with some of the syntax and semantic >> changes discussed (snippet from Sebastian Sylvan's raytracer [1] and >> modified slightly): >> > > _______________________________________________ > Rust-dev mailing list > [email protected] > https://mail.mozilla.org/listinfo/rust-dev > >
_______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
