Douglas Crockford
"The Better Parts" (2014)
https://vimeo.com/97419177
https://www.youtube.com/watch?v=bo36MrBfTk4
- Proper tail calls
- Splat operator (rest and spread)
- Modules
npm() { | |
if [ -f yarn.lock ]; then | |
echo 'use yarn'; | |
else | |
command npm $*; | |
fi | |
} | |
yarn() { | |
if [ -f package-lock.json ]; then |
var Y = function(proc) { | |
return (function(x) { | |
return proc(function(y) { return (x(x))(y);}); | |
})(function(x) { | |
return proc(function(y) { return (x(x))(y);}); | |
}); | |
}; | |
var factgen = function(fact) { | |
return function(n) { |
Douglas Crockford
"The Better Parts" (2014)
https://vimeo.com/97419177
https://www.youtube.com/watch?v=bo36MrBfTk4