getify / Functional-Light-JS

Pragmatic, balanced FP in JavaScript. @FLJSBook on twitter.
http://FLJSBook.com
Other
16.64k stars 1.96k forks source link

Tech Edit: Chapter 2 #47

Closed DrBoolean closed 7 years ago

DrBoolean commented 7 years ago
getify commented 7 years ago

there are the this pitfalls and whatnot so maybe it’s worth putting a section in this primer somewhere

Did you see the "What's This?" section?

DrBoolean commented 7 years ago

Totally! It explains this very well and you do say the reader should be familiar...

I only mention the first class thing because the #1 issue I saw over and over was something like this: compose(g(), f) where g() is called for some reason. I eventually discovered a lot of folks were used to methods and struggled with first class.

I wrote this before I read Ch 3, where you discuss unary and show parseInt, which demonstrates some first class fn issues and shows use so I'm not sure it's necessary anymore