ECMAScript 4 Object Initializers and Type Annotations
My previous post was about ECMAScript 4 object initializers and fixtures. In this post, I'm going to talk about another new feature of ECMAScript 4 object initializers: type annotations. That's right, in ES4 you'll be able to place type annotations on object initializers. To recap, an object initializer, a.k.a. an object literal, is often used in ActionScript 3 instead of the new operator to create an instance of the Object class. For example:
var techWriter:Object = {fname:"Francis", lname:"Cheng", company:"Adobe"};
Continue reading "ECMAScript 4 Object Initializers and Type Annotations" »