• 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: Quincey Morris <email@hidden>
  • Date: Wed, 01 Jul 2015 16:47:39 +0000

On Jul 1, 2015, at 08:09 , Jean-Daniel Dupas <email@hidden> wrote:
>
> Only because you are used to CGRect.

Well, that’s kinda what I was saying: “everyone” is used to CGRect. I’ve been trying to think of other types that are as fundamental, but so far I haven’t thought of any beyond NS/CGRect/Point/Size

> Here you assume that your code reader is already familiar with the API.

Yes, this is the counter-argument.

As an alternative, I’ve been thinking about syntax coloring for keywords. You can sorta preview what this might look like by Command-hovering over a method name. (I find syntax coloring extremely helpful, but I know some people just find it distracting.)

One other related issue is that Swift currently doesn’t have the Obj-C formatting ability of lining up parameter keyword colons vertically on multiple lines. I miss this greatly, because it was a good way of turning a jumble of keywords and expressions into something readable. Perhaps this feature will reappear in a future Swift.



_______________________________________________

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


References: 
 >Re: Swift and parameter names (From: Jean-Daniel Dupas <email@hidden>)

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