• 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: Swift and parameter names
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Swift and parameter names


  • Subject: Re: Swift and parameter names
  • From: Roland King <email@hidden>
  • Date: Thu, 02 Jul 2015 00:07:50 +0800

> On 1 Jul 2015, at 23:58, Charles Srstka <email@hidden> wrote:
>
> On Jul 1, 2015, at 10:09 AM, Jean-Daniel Dupas <email@hidden> wrote:
>>
>> Only because you are used to CGRect. QuickDraw used to defined a rect using left, top, right, bottom values.
>
> Actually, it was top, left, bottom, right.
>
> Charles
>

And with that I believe the case for named parameters has been made.

Named parameters is good syntax, autocomplete, which needs to still get better, makes writing it possibly easier than not, you have the parameter names filled-in for you and don’t need to engage brain at all.


_______________________________________________

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: Swift and parameter names
      • From: Rick Mann <email@hidden>
References: 
 >Re: Swift and parameter names (From: Jean-Daniel Dupas <email@hidden>)
 >Re: Swift and parameter names (From: Charles Srstka <email@hidden>)

  • Prev by Date: Re: Swift and parameter names
  • Next by Date: Re: Swift and parameter names
  • Previous by thread: Re: Swift and parameter names
  • Next by thread: Re: Swift and parameter names
  • Index(es):
    • Date
    • Thread