Does anyone consider to be their most productive language? Tracing and debugging other people's code happens to be the most common thing I do (because writing expressive, stable, non-leaky abstractions is hard), but it's like pulling teeth in Haskell. If I understand correctly, I need to map into an IO monad (or whatever the hell you call it) just to print out some value in a function: how do you get anything done this way?

@2ck I don’t like to go around lecturing people, that they should use Haskell.

But you asked a concrete question and yes I consider #haskell my most productive language.

That being said, if I were optimizing my coding only for productivity I would maybe use another language and be more productive there.

Regarding your IO action problem: If you just use it for debugging you can use trace or unsafePerformIO. That's a totally fine quick solution. Just don‘t rely on it in production code.

Follow

@maralorn thanks for the tip. Admittedly, part of my complaints are just me working out an understanding of the language. I tend to hack my way through a language first, but I need to go back and read more documentation so I'll know about things like `trace` (I think I had seen it in a guide before but forgot about it)

Sign in to participate in the conversation
CleverLibre Social

CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.