On 11/6/13 10:38 AM, Oren Ben-Kiki wrote:
Coming from Haskell, I realize some of the background of using this
syntax form. But looking at my code, I sometimes wish I could just write
`x: Foo := foo();` instead of `let x: Foo = foo();`. All these `let`s in
the code seem noisy. I suppose this was an explicit design decision - I
wonder if anyone can say something about why one form was used over the
other?
`let` tells the parser that there's a pattern coming up.
Languages that do 'x := whatever' can never have destructuring without
some sort of cover grammar hack.
Patrick
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev