4 ms·
Haskell is also based on an everything-is-an-expression syntax, but ended up re-inventing statements one level up, in the do-notation blocks. To me, this indic
by goto11 4y ago
Haskell is also based on an everything-is-an-expression syntax, but ended up re-inventing statements one level up, in the do-notation blocks.
To me, this indicates there is some merit to the statement/expression distinction.
- sixbrx 4y agoI'd say Haskell didn't reinvent statements so much as it just modeled them. That allows manipulating them before they are interpreted, which is a good thing generally.