Earlier quoted context omitted.
Just exposing people to a few basic patterns from functional programming will 1) encourage them to learn a real functional programming and 2) help them write better code. Learning Haskell or Clojure or something is a big task, especially if you're doing it just because you're curious what all this functional programming is about. Everyone understand JavaScript, so being exposed to functional programming there is not…
> Everyone understand JavaScript, so being exposed to functional programming there is not a big deal. (GHC) Haskell and Clojure are pretty big languages, so it's not surprising that learning them requires a lot of effort, but are you seriously suggesting that learning JavaScript (all quirks included) is easier than learning Scheme or Standard ML (all quirks included)? I've honestly tried to learn JavaScript (in depth…
It varies by context, and will be set to the created object if new is used, set to global otherwise. You can also use the call function I think to set to something specific.
Anyway none of it really makes any deep sense to me, just a load of arbitrary features and traps.
FP like Haskell have a deep structure based in theory and maths, so although harder to make sense of initially, one you get it you don't forget it.