Video: Fake operator overloading

On 2012-05-31, I held the talk “Fake operator overloading” at Fluent Conference, in San Francisco. The video is now publicly available (go there for a larger version of the video).






The actual beginning of the talk (a few seconds where I say the talk’s title) is missing. But my mic test is there! ;-)


Abstract:
This presentation explains how to achieve a limited form of operator overloading in JavaScript. You’ll learn tricks that allow you to write code like this:


var p = new Point();
p._ = new Point(1, 2) + new Point(3, 4) + new Point(5, 6);
p._ = new Point(1, 2) * new Point(3, 4) * new Point(5, 6);

Related resources:

Comments

Popular posts from this blog

Steve Lopez and the Importance of Newspapers

Ideas for fixing unconnected computing

Omar to kill me