I'm surprised people are offering justifications based on how much work it is to type or add typedefs or whatever. Reading is *vastly* more common than writing; that's the case to optimize for.
I don't agree that the templates are an implementation detail: 1) All the template instantiations support the same interface. When you see a Rooted<T>, you know exactly what it does. Not so with typedefs. 2) I can define my own templates ranging over the set of types that Handle, Rooted, etc. support, and use Handle<T>. _______________________________________________ dev-tech-js-engine-internals mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-js-engine-internals

