On 7/27/06, Weldon MacDonald <[EMAIL PROTECTED]> wrote:
That's the real source of sloppiness, Java has eliminitaed these discussions by the simple expeditent of requiring that the conditional resolves to a boolean, nothing wlse will do. THe real question to me is does AS3 change this behavior?
I don't know about AS3, but haXe doesn't allow that kind of "sloppiness", either. Generally, it beats any AS flavour hands down when it gets to typing, and those of you who consider such things important should definitely check out <haxe.org> -- you can easily learn how to do the same things you can do with AS and then still have what was a whole new world for me to explore to further improve your code, especially when typing is concerned. AS allows if(a.length), that's why I always did it that way and never felt bad about it. Why bother to differ between an undefined length property and one that is 0 while iterating over an array that itself can contain objects of any kind, potentially of mixed types, and I having to trust an unsafe cast if I don't want the overhead of checking the type at runtime? Just my two cents worth to a potentially endless discussion that might turn into a flame war à la whether or not to use _root. Mark _______________________________________________ [email protected] To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com

