News for hackers. Stuff that matters.
Re:The Secret Life of JavaScript Primitives by LeafStorm on Monday September 05, 2011 @11:26AM (#2962448)
You could do something similar by having each primitive type share a global prototype á la Lua's "string" metatable. Most operations are implemented as primitives in the VM, but any non-primitive operations on primitive types go to the type's metatable.

There are no comments on this comment yet.