• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: newbie questions about objective-c, ruby, python, groovy and cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Re: newbie questions about objective-c, ruby, python, groovy and cocoa (From: "KlunkyRobot" <email@hidden>)
 >Re: newbie questions about objective-c, ruby, python, groovy and cocoa (From: Andy Lee <email@hidden>)
 >Re: newbie questions about objective-c, ruby, python, groovy and cocoa (From: Allan Odgaard <email@hidden>)

  • Prev by Date: Re: Loading mach-o shared libraries
  • Next by Date: Re: Rasterizing an NSString to a bitmap
  • Previous by thread: Re: newbie questions about objective-c, ruby, python, groovy and cocoa
  • Next by thread: Making Returns stop Editing
  • Index(es):
    • Date
    • Thread