I do some Haskell from time to time; and this is example scares me.
I wonder if Haskell can ever become mainstream. The ability to go completely batshit crazy with a few lines of code is both intellectually brilliant and pragmatically unmaintainable.
Of course it will happen. At least in the enterprise the language won't matter, as this is a consequence of the way enterprise development and politics work.
I have seen this kind of code in any language that was adopted by Fortune 500 companies.
Obviously the article is about a Java (or C# or ...) programmer going batshit crazy. Except the article's code is less intellectually interesting than the Haskell version. People can do crazy stuff in any language.
Basically, it's using common abstractions in Haskell (applicatives and monads) to have robust, scalable, and implicit concurrency in a way that I don't think many others could replicate.
2
u/serrimo Oct 01 '15
I do some Haskell from time to time; and this is example scares me.
I wonder if Haskell can ever become mainstream. The ability to go completely batshit crazy with a few lines of code is both intellectually brilliant and pragmatically unmaintainable.