2 ms·
Well, I've had to use parsers in other languages that weren't pure or where one couldn't just translate the "Result a" equivalent to "Result b". That always le
by marcosdumay 3y ago
Well, I've had to use parsers in other languages that weren't pure or where one couldn't just translate the "Result a" equivalent to "Result b".
That always lead to a bunch of annoyingly error-prone boilerplate. But yeah, that's it.
I'd say that half of the Haskell's value is avoiding a bunch of annoyingly error-prone boilerplate... everywhere and recursively.
- contravariant 3y agoYeah I suppose that is the other side of the coin. Knowing about functors makes it easier to intuit what utilitu functions to write to avoid boilerplate. But sometimes the 'mysticism' gets in the way, this article spends a lot of words on technicalities but very little on the intuition that this should be fairly trivially true. This might make sense in the context for which this article is written, but why this article is on the front page of HN I don't understand.