[swift-evolution] [Review] SE-0006 Apply API Guidelines to the Standard Library
Matt Whiteside
mwhiteside.dev at gmail.com
Sat Jan 30 17:51:47 CST 2016
> On Jan 25, 2016, at 07:40, Radosław Pietruszewski via swift-evolution <swift-evolution at swift.org> wrote:
>
> It seemed like the -able/-Type convention did a good job disambiguating types you can actually instantiate from protocols, with very little “verbosity cost”.
I think this argument is outweighed by the benefit of making it easier to name things. I always found the decision about whether to suffix things with “-Type" to be a point of confusion, and I’m glad to see it being removed. As far as disambiguating instantiatable types from protocols, this seems like something that could be handled by the IDE, for example, it could put a strike-through line on the auto-complete options that you can’t use as types in the given context.
Matt
More information about the swift-evolution
mailing list