Re: More elegance than a long if/else
Re: More elegance than a long if/else
- Subject: Re: More elegance than a long if/else
- From: Pascal Bourguignon <email@hidden>
- Date: Sat, 11 Mar 2017 15:30:09 +0100
> On 11 Mar 2017, at 09:57, Quincey Morris <email@hidden> wrote:
>
> On Mar 10, 2017, at 17:35 , Pascal Bourguignon <email@hidden <mailto:email@hidden>> wrote:
>>
>> this is much clearer in intent than return x+y. So much clearer…
>
> My argument is not that the original solution was clearer because longer, but that it was longer because clearer.
>
My argument is that algebraic expressions are clearer than switches.
--
__Pascal J. Bourguignon__
_______________________________________________
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