flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Heidegger ...@leichtgewicht.at>
Subject Re: AS3 Enhancements: method overloading. Why do people want this?
Date Mon, 16 Jan 2012 15:02:12 GMT
Oh, I just remembered two other reasons for that:

1) Performance: If you do not have variable arguments you have to 
implement if/else switches that cost cpu cycles. Also the AVM needs to 
create array instances for a variable argument length to implement just 
2) Documentation & auto completion: If the logic varies for different 
arguments it can be clearly documented and the documentation as well as 
the type checks still work.


View raw message