Re: Swift and parameter names
Re: Swift and parameter names
- Subject: Re: Swift and parameter names
- From: Rick Mann <email@hidden>
- Date: Wed, 01 Jul 2015 13:18:04 -0700
> On Jul 1, 2015, at 09:07 , Roland King <email@hidden> wrote:
>
> Named parameters is good syntax, autocomplete, which needs to still get better,
It needs to get SO MUCH BETTER.
• It still fails completely for me ALL the time, Xcode 6 or 7, there are times when it simply won't offer any completions at all
• It still offers completions that are not appropriate in the context, making the list too long to search through. This is particularly troublesome if you can't remember the first few characters.
• Worst thing: you can't type more past the first part of a function name. This is true for Obj-C and Swift. This is particularly bad when using delegates, since all delegates begin with the same prefix, the methods are only distinguished by parameter names. There's no way to type-select to reduce the length of a list of delegate names, and it can be quite hard to scan down the list to find the one that you really want, because there's no horizontal alignment of parameter names.
Despite having filed bugs for all of this multiple times over the years, it hasn't gotten noticeably better. I'm especially surprised that last point hasn't been addressed.
If instead, the (first part of) the function name carried the bulk of the name (rather than relying on parameter names), this would not be an issue. Moreover, you wouldn't be required to have an IDE that supports code completion (more of an issue with something like Swift being open-sourced and used in non-OS X environments).
--
Rick Mann
email@hidden
_______________________________________________
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