top | item 18635315

(no title)

Ws32ok | 7 years ago

Complexity often masks a lack of search for simplicity. Or was "let" the simplest answer?

discuss

order

steveklabnik|7 years ago

It's not a matter of "search for simplicity"; the grammar is just inherently ambiguous without some sort of token in this position. let was taken from OCaml, where a lot of inspiration from Rust came from.

(As a reader, it's also really nice to be able to see "there's a new variable being created here" at a glance. Ambiguity is a human problem as well as a computer problem.)