4 ms·
I don't know Clojure, but stack traces and breakpoints are nearly unusable in Haskell also, for exactly the reason you say. It's a weakness of functional progra
by lupire 4y ago
I don't know Clojure, but stack traces and breakpoints are nearly unusable in Haskell also, for exactly the reason you say. It's a weakness of functional programming, not the language.
That said, you need these things less when you don't have mutable state and you do have referential integrity so you can zoom in on the critical path of side effecting code.
- still_grokking 4y ago> It's a weakness of functional programming, not the language. I would strongly object this. Have you seen ZIO? https://zio.dev/ https://zio.dev/
- fho 4y agoHmm ... What's your problem with ghci debugging? Iirc it does not work worse then eg pdb. The only problem I encountered regularly was that bugs did only manifest in the optimized versions not in the debugged ones.