2 ms·
I've always taken it as meaning, "If it compiles, it must works, otherwise you're in trouble;" given that debuggers for Haskell are still relatively immature (
by seanmcdirmid 12y ago
I've always taken it as meaning, "If it compiles, it must works, otherwise you're in trouble;" given that debuggers for Haskell are still relatively immature (especially for its age), your best bet is to lean heavily on the type system.
- eru 12y agoYou can still run tests. Debuggers are great for figuring out why your program is wrong and how to fix it. But they seldom alert you to problems in the first place. Tests do.
- seanmcdirmid 12y agoUndoubtedly--tests, static types, debugging--I want them all!
- sanxiyn 12y agoThis is a Haskell-specific problem. OCaml has an excellent debugger, not to speak of F#.
- seanmcdirmid 12y agoOCaml and F# are also more conventional. Lazy evaluation is a pain during debugging; even using laziness in a language like C# can be troublesome when you hit the debugger. So if you are going to rely on a lot of it, might as well have a lot of static typing to avoid debugging it.