scala-subscript / subscript

9 stars 2 forks source link

`do` construct, analogous to `let` #42

Closed AndreVanDelft closed 8 years ago

AndreVanDelft commented 8 years ago

let conveniently introduces a tiny code fragment, corresponding with a neutral element in ACP.

Similarly, the word do should introduce a normal code fragment, corresponding to an atomic action. And do* should introduce a threaded code fragment.

This will even further reduce the role of bracket pairs.

AndreVanDelft commented 8 years ago

With the keyword do we would get an ambiguity conflict with the do-then-else construct. So we have to find a better word. Maybe act?

AndreVanDelft commented 8 years ago

Sorry to bother open this again, but I think that

Therefore I suggest to replace this do by do!, and to add do?, do. and do...for the missing cases. Ok?