You're "hacking" it either way.  This one function is not going to cause
coder confusion. You're leaving the type off so you can pass any type. Considering you type everything else, it's pretty obvious to anyone who looks at it what's going on.

Adding extra lines of code that put a parameter into an object is possibly MORE confusing than leaving off a type which the next line shows exactly why (if param instanceof).

AS3 has *, AS2 has blank. I think it's hacky to add more lines of code versus what I don't think is hacky which is leaving off a type in AS2. That's HOW you accept any type of param in AS2.

That's a fair point. It's more the principle of the thing - it was frustrating not to be *able* to make it strict. But yes, leaving off the :Object would be a better solution.

Danny
_______________________________________________
Flashcoders@chattyfig.figleaf.com
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

Reply via email to