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
4
u/effinsky Feb 04 '24
learning OCaml right now, and yeah, while I love it, the braces, C-family crowd hates that too. again, it's what you're not used to, aint it? OCaml syntax (not to mention semantics) really is quite something. Real nice. The major reason we see braces in modern languages like Rust and Kotlin is for familiarity linked to adoption. The whole language scene has become utterly conservative. Think back to the 90s with Python, Ruby, Haskell, OCaml and a whole bunch more. What a time, no? Then, of course, Java happened.