[swift-evolution] [Review] SE-0006 Apply API Guidelines to the Standard Library

Brent Royal-Gordon brent at architechies.com
Fri Jan 29 20:43:29 CST 2016


> Count me among those who liked the ‘Type’ suffix for protocols though.

I wonder if we can't change it to a -`like` suffix. Applying that to 2.1 stdlib gives you:

AnyCollectionlike
BidirectionalIndexlike
BitwiseOperationslike
Booleanlike
CVarArglike
Collectionlike
Errorlike
FloatingPointlike
ForwardIndexlike
Generatorlike
IntegerArithmeticlike
Integerlike
Intervallike
LazyCollectionlike
LazySequencelike
MirrorPathlike
MutableCollectionlike
OptionSetlike
OutputStreamlike
RandomAccessIndexlike
RangeReplaceableCollectionlike
ReverseIndexlike
Sequencelike
SetAlgebralike
SignedIntegerlike
SignedNumberlike
UnicodeCodeclike
UnsignedIntegerlike

Not all of these are perfect, but in some cases that's because they should arguably be -able protocols (BitwiseOperationsType -> BitwiseOperable).

-- 
Brent Royal-Gordon
Architechies



More information about the swift-evolution mailing list