by eloff · 5y ago · 0 comments
I just don't think you can make an honest business case for it on a greenfield project. That's my opinion, is there a chance I'm wrong?
- If you're working with complex domain objects, Haskell has somewhat better (edit: or at least more powerful) tools for forbidding invalid states during runtime and assisting refactors as your data model changes.
- Haskell seems to have better libraries for writing parsers and compilers than Rust, if that's relevant to your project.
- Some folks prefer ML syntax to Algol-like syntax.
- The GC, immutable-by-default data, and reasonable concurrency model are pretty nice features of the GHC runtime.
- The performance difference between Haskell and Rust probably doesn't matter for most projects.
- Haskell might actually compile faster if you avoid crazy type-level programming shenanigans.
- Haskell has a pretty decent REPL.
Obviously, Rust has a different set of trade-offs, and the bigger cost to either is going to be that both are a bit off the beaten path and require some practice and experience to be productive and comfortable in.
Rust is a nice modern language that's both imperative and functional with great tooling and libraries.
What makes Haskell better in this area in your opinion?
Which source materials did you use? What is your background? How comfortable are you with higher level typing systems?
I have very little hands-on experience, but with the little I messed with both languages, they serve different purposes and are not apples to apples comparison.