My understanding, from listening to a lot of Javascript talk on different sites, is that hint-type won't do as much to help people think.
In short, most Javascript objects tend to have the same “shape” if you like. That is, they will have the same properties created in the same order. This "form" can be considered as the "type" of the object. Example:
function Point(x, y) { this.x = x; this.y = y; }
All objects created from the Point will have the same “shape”, and the new internal Javascript mechanisms can make some fancy games to search faster.
In Chrome (possibly others), they use a high-bit flag to indicate whether the rest of the number is an integer or a pointer.
With all these bizarre things, what just prints for human coders happens. For example, I really do not need to worry about the type and not use this function.
However, you are half correct. The hinting type is part of
ActionScript 3 , which is derived from
ECMAScript , but the hint has never turned it into a standard. AFAIK, beyond wishful thinking, it was not discussed.
This video describes things in much more detail: http://www.youtube.com/watch?v=FrufJFBSoQY
Jeremy j starcher
source share