Meta
Categories
Tags
Category Archives: closures
Manual code specialization:a poor-mans partial evaluation in JavaScript
Recall the object function that Douglas Crockford is promoting in his work on prototypal inheritance in JavaScript: function object(p) { function F(){} F.prototype = p; return new F(); } The object function creates a new object which has the input … Continue reading