r/functionalprogramming • u/effinsky • Feb 03 '24
Question whitespace sensitive syntax in Haskell -- better than elsewhere?
I have the sense whitespace sensitive syntax in Python and elsewhere is getting a lot of flack, though to me, just reading the stuff, it produces really clean, uncluttered code. Now Scala has it too. And with Haskell it's been there since forever. Has the Haskell community been critical or receptive to this form of syntax? What's the story?
8
Upvotes
View all comments
Show parent comment
3
u/XDracam Feb 03 '24
Having worked with Haskell and Scala 3: the first 3 points don't really apply. They are only problematic in dynamic languages that don't validate your code after you do the changes. You can make the same arguments for optional semicolons, yet they aren't really a problem in TypeScript or Scala at all.