incubator-flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Heidegger>
Subject Re: AS3 Enhancements: method overloading. Why do people want this?
Date Mon, 16 Jan 2012 15:45:36 GMT
The two "test" methods actually had different arguments (one wanted a 
string the other one an int).

The descriptive long names such as sendString are funny as long as they 
are short. I have had occasions
where I wanted to differ between a complex object and a string 
representation: sendString(), sendQuery(), then there were two totally 
different type of Querys
sendGeneratedQuery, sendSuperQueryFromHell, 
sendTheRoomServiceObjectThatNoOneEverWanted(). (just saying)


On 17/01/2012 00:33, Rui Silva wrote:
>> From: "Martin Heidegger"<>
>> (...) Also
>> the if checks for the type cost performance.
>> yours
>> Martin.
> I believe that the example stated there were no difference in the code that
> sent any of the types. If that was not the case, I'd keep the descriptive
> long method names.
> Agree on the type safety when you use *, but I would only use that when any
> type is absolutely admissible, or I'd keep the descriptive long method
> names.
> Rui

View raw message