Hacker News new | ask | show | jobs
by Ws32ok 2753 days ago
Complexity often masks a lack of search for simplicity. Or was "let" the simplest answer?
1 comments

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.)