Re:Leaving Haskell Behind
by friend_and_foe on Thursday August 24, 2023 @10:20PM
(#37257148)
Well the thing about testing with Haskell, the type system ensures that you're not going to have the most common bugs. If there's an error, it's probably an error in your logic or you did some math wrong or something like that. So testing, you'd basically write tests for your mental model of how the program should operate. And because of the type system you're probably going to use unsafe for a lot of test code.
Re:Leaving Haskell Behind
by throwawaymaths on Thursday August 24, 2023 @10:31PM
(#37257254)
Clearly the type system is comprehensively self documenting too.
You might also want a good testing in the lang or stdlib, and a documentation system.