Haskell's syntax has some roots in mathematical syntax. Blame mathematicians.
Name:
Anonymous2015-09-26 10:57
>>3 Can't argue with that. Haskell's syntax comes in at a close second place, though.
Name:
Anonymous2015-09-26 11:17
it uses ocaml/sml 'space for curried function application' which works really well. where clauses are really useful. equations with pattern matching and guards are also very terse. I want to say the bad part is indentation sensitive syntax but it isn't a problem in haskell like it is in python.
what exactly is it that you don't like about it?
Name:
Anonymous2015-09-26 11:33
>>6 The program text doesn't look like how it executes, nor is there any clear mapping, nor does the syntax look like the problem or the solution to the problem, nor does it describe the problem in natural language. Haskell has the worst syntax I know of only next to Python.
The program text doesn't look like how it executes nor is there any clear mapping nor does the syntax look like the problem or the solution to the problem nor does it describe the problem in natural language
You better explain yourself.
Haskell has the worst syntax I know of only next to Python.
I see, no more explanation needed.
Name:
Anonymous2015-09-26 12:06
>>7 So SQL syntax looks like the problem domain? Or maybe like the solution to the problem, or like natural language? Nice laugh.
Name:
Anonymous2015-09-26 12:55
>>6 It's totally ambiguous, I find myself constantly wrapping things in parentheses because otherwise it doesn't do what I expect it to or I get a compilation error, so my code ends up looking like Lisp. If your indentation is off you get cryptic compilation errors. If you stick a `where' between two guards you get a cryptic compilation error. Then that's weird infix function calling syntax.
The program text doesn't look like how it executes
Typical imperative monkey.
nor is there any clear mapping, nor does the syntax look like the problem or the solution to the problem, nor does it describe the problem in natural language
Of course it is. Haskal consciously tries not to look like natural languages which are always shit at expressing abstraction by the way but of course your average /frog/rider would have already taken that for granted. It's supposed to look like mathematics notation, which sucks BUTT in comparison with sexpr.
I find myself constantly wrapping things in parentheses