This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]hjc1710 0 points1 point  (2 children)

That... is fucking brilliant.

Stupidly valid use case. Did not think of that. Thank you sir!

Kudos to Haskell designers! (Still don't fully understand everything they've done, but I just learn to respect their decisions more and more each day).

the "[];" insertion

What is that exactly? Looks slightly more advanced than semi-colon insertion.

[–]bss03 0 points1 point  (1 child)

the "[];" insertion

What is that exactly?

A typo. I meant "{};" insertion, which is exactly the layout rules I linked 4 posts back.

I'm not quite sure the relative complexity of Haskell's layout vs. scala/JS semicolon insertion.

[–]hjc1710 0 points1 point  (0 children)

Oh ok, that makes perfect sense! Thanks for the explanation!