Re:What I Wish I Knew When Learning Haskell
by bontaq on Saturday April 11, 2020 @09:15AM
(#22841501)
It took me way too long to come across Trace, if it was more widely known I don't think we'd see so many "impossible to debug" related issues. It's great.
Re:What I Wish I Knew When Learning Haskell
by marceloabsousa on Saturday April 11, 2020 @08:34AM
(#22841327)
I think we can all agree that debugging languages with lazy evaluation is specially hard. To effectively use Debug.Trace you actually need to add strictness and that can be fundamentally incompatible if you do intend to use the full power of lazy evaluation.
Re:What I Wish I Knew When Learning Haskell
by lonelappde on Saturday April 11, 2020 @08:51AM
(#22841409)
Debug.Trace won't solve the space leaks lurking around every corner of your program, and won't shave the hundreds of megabytes to gigabytes of RAM the compiler needs for compiling a non trivial program with dependencies.
This is no reason to avoid arguably the most popular (and state-of-the-art) function language and implementation out there.