by wireprotocol · 6y ago · 0 comments
No. Technical excellence matters a lot when used appropriately, but competing with javascript and python is not where haskell is going to win.
There IS a language with HUGE success that is: declarative, strongly typed with type inference, lazy, and no side effects. It's called SQL[1].
That's where Haskell could shine -- compared with SQL. Imagine Maybe rather than NULLs, a sane language, multiple returns, a much better type system, etc. Python and Java can't touch SQL, but haskell could.
[1] http://thoughts.davisjeff.com/2011/09/25/sql-the-successful-...
It also sometimes has side effects, although that's more dialect specific than present in the standard I think (when it comes to DML).
And type inference also plays a role with CASE statements, UNION, etc. Again may depend on SQL implementation.
And people care about correctness in a way that they don't with python or javascript. Haskell really has something to offer.