• 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: Cocoa et al as HCI usability problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa et al as HCI usability problem


  • Subject: Re: Cocoa et al as HCI usability problem
  • From: Philippe Mougin <email@hidden>
  • Date: Tue, 20 May 2008 01:00:38 +0200


Le 20 mai 08 à 00:06, Peter Duniho a écrit :

C# provides "partial" class implementations for when you want to split functionality across multiple module files (one use of categories).

As you wrote, this is one use of categories. However, it is not this usage that makes categories so powerful. It is the possibility to add methods to classes for which you don't have source code (i.e., that have been compiled by someone else). C# partial classes require you to have all of the class source code (all the "partial" chunks) when compiling your class.


When you are accessing only the public API for a class, C#'s extension methods provide the same sort of syntax,

Yes, but the semantic is completely different. In C#, extension methods are actually not instance methods or class methods : no dynamic binding takes place at invocation time. All is statically resolved at compile time. It is syntactic sugar for static "methods".


Philippe Mougin
http://www.fscript.org
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Re: Cocoa et al as HCI usability problem (From: Peter Duniho <email@hidden>)

  • Prev by Date: Re: Cocoa et al as HCI usability problem
  • Next by Date: Re: Bindings: Allows Editing Multiple Values Selection
  • Previous by thread: Re: Cocoa et al as HCI usability problem
  • Next by thread: Re: Cocoa et al as HCI usability problem
  • Index(es):
    • Date
    • Thread