Re: Amount of Arguments per Method
Re: Amount of Arguments per Method
- Subject: Re: Amount of Arguments per Method
- From: Bill Bumgarner <email@hidden>
- Date: Mon, 22 Jun 2009 08:46:06 -0500
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 (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