Re:Flash Professional CS5 will build native iPhone and iPod ...
by zackattack on Monday October 05, 2009 @04:21PM
(#862681)
Fair enough. Probably true for AS3, which seems to superficially resemble Java. One of my hobby projects (HipHopGoblin) uses a bunch of AS2, which I find very similar to JavaScript.
[ Parent
| on HN ]
Re:Flash Professional CS5 will build native iPhone and iPod ...
by iron_ball on Monday October 05, 2009 @05:33PM
(#862853)
AS3 is quite similar to Javascript also -- you can't do as much with the prototypes, but it still has closures, allowing a functional style; and everything's essentially an Object with properties, allowing a dynamic style. You can turn off strict mode and it won't do compile-time type checking, or you can type specific signatures as "*" and they will not be type-checked. This means you can do all the duck-typing you like, instead of defining a Java-like interface.
One of AS3's goals was definitely to become more like Java, for whatever reason, but almost all of the new Java-y-ness is optional.