5
10Dev
4y

Learning Haskell is pain

Haskell fucks with your mind and enjoys doing it

Every Haskell list comprehension is the most convoluted piece of shit I've ever seen, until I see the next list comprehension

The Haskell compiler errors are the worst I've ever seen, and I've worked with fucking c++

AND NOTHING MAKES SENSE! I FUCKING HATE HASKELL

Comments
  • 4
    Ah, you ever just λy.λx.x+y ?
  • 1
    Compiler errors for functional languages are worse than their object-oriented and procedual counterparts in general.

    That mostly comes from the difficulty of generating meaningful traces for anonymous functions, tail recursion, lazy evaluation, deeper call stacks in general - and of course all that syntactic sugar that is just a bunch of nested functions at runtime.

    It is possible to generate meaningful messages and traces. But it definitely isn't easy.
  • 2
    The compile messages are awful, but after a while you kind of just get used to where you've gone wrong. Nicer compiler messages would be useful, but it's not as much of a big deal as it first seems.

    The real win is that you can do so much more in the way of compile time checking though.
  • 2
    The errors can be pretty cryptic but they can help when it points to. A specific part of a line. Type holes are really nice too. It's an error, but tells you the type of what's expected to be there and gives you suggestions of what can be used based on what's in scope. That can come in very handy sometimes.
  • 0
    Learning Haskell is fun the way it fucks with your mind sideways. So enjoyable. Tho I have to agree about the compiler errors - that they’re not really that bad either.
Add Comment