Re: [flexcoders] Re: AS3 improvement feedback

2010-06-20 Thread Oleg Sivokon
No, that's different from type inference. Type inference preserves strict typing. It is most useful for anonymous classes or templates. That is the cases when it is preferred to let compiler to decide on the type of a variable. Think of retrieving values from the database and wanting to have stric

[flexcoders] Re: AS3 improvement feedback

2010-06-20 Thread Shanimal
I've never heard of hoisting (pardon mah ignorance), but it could declared like this at the top. var a:*; Because of the examples given by @Rick (when strict mode is off) but also because of polymorphism. Your right, its annoying that you have to enter the Type twice, but coming from AS and A