Re:Ask HN: How should a programming language accommodate dis...
by evincarofautumn on Saturday November 10, 2018 @03:51AM
(#18420519)
Simon Peyton-Jones is (was?) known for writing blocks in “aligned” instead of “hanging” style, with separators in prefix:
I find it nice enough to read, particularly because it leads to rapidly increasing indentation and consequently discourages deeply nested code, but it’s a bit of a pain to edit & diff. I would write the above like this:
This prefix delimiter style is actually fairly standard in Haskell not for “do” notation, but for records and lists, since Haskell doesn’t allow a final trailing comma in these structures:
[ Parent
| on HN ]
There are no comments on this comment yet.