• 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: More elegance than a long if/else
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: More elegance than a long if/else
      • From: Quincey Morris <email@hidden>
References: 
 >More elegance than a long if/else (From: "Eric E. Dolecki" <email@hidden>)
 >Re: More elegance than a long if/else (From: Jeff Kelley <email@hidden>)
 >Re: More elegance than a long if/else (From: "Eric E. Dolecki" <email@hidden>)
 >Re: More elegance than a long if/else (From: Jeff Kelley <email@hidden>)
 >Re: More elegance than a long if/else (From: Bryan Vines <email@hidden>)
 >Re: More elegance than a long if/else (From: Quincey Morris <email@hidden>)
 >Re: More elegance than a long if/else (From: Pascal Bourguignon <email@hidden>)
 >Re: More elegance than a long if/else (From: Quincey Morris <email@hidden>)

  • Prev by Date: Printing in a Mac app with multiple philosophies
  • Next by Date: Re: Unicode filenames with Apple File System and UIManagedDocument
  • Previous by thread: Re: More elegance than a long if/else
  • Next by thread: Re: More elegance than a long if/else
  • Index(es):
    • Date
    • Thread