3 ms·
This entire post is so true. As a personal (not so personal anecdote). Purescript[1] Book[2] claims "No prior knowledge of functional programming is required,
by dmitriid 9y ago
This entire post is so true.
As a personal (not so personal anecdote). Purescript[1] Book[2] claims "No prior knowledge of functional programming is required, but it certainly won’t hurt. New ideas will be accompanied by practical examples, so you should be able to form an intuition for the concepts from functional programming that we will use."
And then it goes through a rather gentle introduction of various concepts. And then this is the first time ever that `map` is mentioned:
> Fortunately, the Prelude module provides a way to do this. The map operator can be used to lift a function over an appropriate type constructor like Maybe (we’ll see more on this function, and others like it, later in the book, when we talk about functors)
WTF.
"lifting over typeclasses wat". The whole concept of lifting isn't discussed until six chapters later.
[1] A Haskell-derived/Haskell-based language that compiles to Javascript, http://www.purescript.org http://www.purescript.org
[2] https://leanpub.com/purescript/read https://leanpub.com/purescript/read