[swift-evolution] Swift case conventions for Enums
Douglas Gregor
dgregor at apple.com
Mon Dec 21 23:20:56 CST 2015
> On Dec 21, 2015, at 4:23 PM, Joe Groff <jgroff at apple.com> wrote:
>
>
>> On Dec 21, 2015, at 3:58 PM, Michael Wells via swift-evolution <swift-evolution at swift.org <mailto:swift-evolution at swift.org>> wrote:
>>
>> I love that Swift has a published API design guidelines at https://swift.org/documentation/api-design-guidelines.html <https://swift.org/documentation/api-design-guidelines.html>, but one thing about it bugs me: the use of UpperCamelCase for cases. I know this ship has long sailed, but why didn't the team choose lowerCamelCase for these? The current style seems inconsistent and requires an “instances are lowerCamelCase, aside from Enums” clarification.
>
> Using lowerCamelCase makes sense to me; I've proposed a similar change in the past. Doug, was any decision about enum constant case made as part of the API naming guidelines?
No, we haven’t made a decision here. Thanks for the nudge!
- Doug
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20151221/66b4ecd6/attachment.html>
More information about the swift-evolution
mailing list