I find it interesting that pretty much all the nay votes don't want it because it isn't pretty... or makes things feel strange or... [ insert touchie feelie reason here ]. Overloading is a performance mechanism... which means that the real question should be, "would the performance gains of overloading in ActionScript be on-par with the gains realized in a compiled language like C, or C++?"
if ( AS3.overloading == C.overloading ) yay! else boo! BTW, if we are to realize the dreams of m.labriola of a DSL ... overloading is a key concept. Just sayin' On Mon, Jan 16, 2012 at 6:55 PM, Aladin Scott <ala...@centrepede.com> wrote: > I always just use uint, isn't that normal? Personally I don't think method > overloading is necessary at all - the clarity and concision of AS3 is its > best feature. > > Aladin > > > On Mon, Jan 16, 2012 at 11:47 PM, Rick Winscot <rick.wins...@gmail.com>wrote: > >> Color handling in AS3 is a mess.. is it hex, uint, string, or an object? In >> an application, it could be all three or null or nothing or empty. Meh. >> >> Overloading for concrete handling would be very helpful in this particular >> case and would get rid of Object or * as a go-to parameter type. >> On Jan 16, 2012 9:50 AM, "David Arno" <da...@davidarno.org> wrote: >> >> > I have noticed that the most popular request so far for an enhancement to >> > AS3 is method overload. To quote Bertrand Meyer >> > (http://drdobbs.com/184414874): >> > >> > "Overloading, the most masochistic device ever introduced, means that you >> > can give the same name to several methods as long as they differ by at >> > least >> > one argument type. This is a rare example of a facility that has no known >> > advantage, and many documented problems (it's confusing, and conflicts >> with >> > object-oriented mechanisms such as polymorphism and redefinition)." >> > >> > I'm in full agreement with the above quote. I think it is good that AS3 >> > doesn't allow method overloading. Yet it is a popular request, so clearly >> > other folk disagree with this. I'm therefore curious to know why people >> are >> > requesting what ought - IMO - to be viewed as a bad thing. >> > >> > David. >> > >> > >>