Re: Swift and parameter names
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