fantasyland / fantasy-land

Specification for interoperability of common algebraic structures in JavaScript
MIT License
10.13k stars 376 forks source link

Motivation #3

Open Raynos opened 11 years ago

Raynos commented 11 years ago

Every algebraic data type should contain motivation for WHY it's a useful abstraction.

It took me a while to understand why any of these are useful abstractions.

puffnfresh commented 11 years ago

Not sure - does the promise specification have to say why promises are useful?

But I'm happy to include a separate Markdown file describing each of the classes :smile:

Raynos commented 11 years ago

I have zero idea what Disjoint is ( https://github.com/tonymorris/type-class/blob/master/src/Data/Semigroupoid/Disjoint.hs ). If your going to port all of them please give some explanations for people that don't understand haskell.

jedwards1211 commented 6 years ago

The motivation appears to be, that Haskell has refactored some people's brains to the point that they want to continue thinking in Haskell instead of thinking in JS :trollface:

Coming from Java I was brainwashed by a lot of OOP concepts, and it took me awhile to learn to adapt and think in a non-OOP way again.