Re: newbie questions about objective-c, ruby, python, groovy and cocoa
Re: newbie questions about objective-c, ruby, python, groovy and cocoa
- Subject: Re: newbie questions about objective-c, ruby, python, groovy and cocoa
- From: Andy Lee <email@hidden>
- Date: Thu, 10 Jun 2004 12:25:12 -0400
On Jun 10, 2004, at 7:01 AM, Wade Tregaskis wrote:
Method overloading is a convenience provided by the compiler so you
don't have to think of a different name when you have two methods
that are conceptually the same but take different arguments. But in
Objective-C, when you have different arguments, the *natural* thing
to do is to name the method accordingly. I see this as a good thing
because it makes code more readable [...]
Objective-C arguably does support method overloading. It's just it
happens to always be the same method that's called, so it's up to the
programmer to perform the appropriate distinctions.
I could be wrong, but I'm not sure that's technically method
overloading. I think you're talking about dynamic binding -- or is it
polymorphism? Bah, too many fancy words for my peanut brain.
--Andy
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.