3 ms·
the reason for "fetishizing abstractions" is that you can write libraries that work with the generic structure of those abstractions, and are therefore automati
by zem 5y ago
the reason for "fetishizing abstractions" is that you can write libraries that work with the generic structure of those abstractions, and are therefore automatically useful for all the specific cases. the design of ruby's "Enumerable" library in the standard lib is a good example, it's a huge collection of methods that works for anything that supplies an 'each' iterator.
- WastingMyTime89 5y agoI was specifically talking about these abstractions as monads and functors not abstraction in general. Enumerable is a lot less abstract than both monads and functors. I personally don't think Haskell stand at the right level of abstraction but that's a personal opinion.
- zem 5y ago'do' notation is a good example of where the monad abstraction comes in handy.