>Theory SICP Essentials of Programming Languages Practical Foundations for Programming Languages: cs.cmu.edu/~rwh/pfpl.html How to Design Programs: ccs.neu.edu/home/matthias/HtDP2e/ Art of the Propagator An Introduction to Functional Programming Through Lambda Calculus
Almost. A closure is when the function that gets returned can reference things inside of the function that created it.
Anthony Foster
Ah I see. So the returned function has its own sort of embedded scope.
Jason Sullivan
Yep! It's a way of having a function own some bit of data it can use before actually calling it.
It's mixed paradigm. But you can't program in it in a super-functional way if you want to be reasonably efficient.
A good idea is to make the small-scale functional, and the large scale OO. Particularly with ES6.
Going full imperative OO means you have a nightmarish number of moving parts, and functional everything is very hard to organize and slow because JavaScript doesn't yet have things to deal with that. (Though, I like to think it might happen eventually)
Dylan Ramirez
>info
David White
Ebooks in Emacs. Nobody likes them, but they are kind of nice sometimes.
I also have one for the Common Lisp Hyperspec that lets me jump to definitions for functions and macros under my cursor in source files.