On Jun 22, 2009, at 6:10 AM, Jack Carbaugh wrote:
With that many arguments, i'd make a dictionary and pass only that dictionary. I understand your choice for not doing so however.

Why? If you break up the call by hitting return after each argument and line up the colons (which Xcode will do automatically), it is about as clear as it can get.

With a dictionary there is no validation during compilation that you have set up all of the parameters, you can't pass scalar values directly, and it adds all kinds of unnecessary additional dependencies (like memory management, if in non-GC).

Still, I avoid such a monstrosity of a method when defining APIs.

b.bum


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to