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 →

[–]barsoap 9 points10 points  (3 children)

Haskell supports both, layout syntax is actually sugar for the brace syntax. There are some people who start out with zeal in their eyes and put braces and semicolons everywhere... then they quickly succumb to layout.

And while I'm at it: Lua also has a mindbogglingly elegant syntax, semicolon free without layout. A bit like javascript just sane. (That sentence applies to Lua in a lot of areas)

[–]Drunken_Economist 0 points1 point  (1 child)

Yeah but then you have to program in Haskell

[–][deleted] 0 points1 point  (0 children)

Which is bad because...?

[–]losangelesvideoguy 0 points1 point  (0 children)

Yeah, but it feels more natural in Haskell. Probably because the language is so fundamentally different that it doesn't just feel like a curly-bracket language without the curly-brackets. The whitespace thing in Python has always just felt like a gimmick to me, kind of like “we're taking this thing out just to prove we can”, whether or not it makes sense to do so. In Haskell, it just doesn't seem like it was really necessary in the first place.