[swift-evolution] Swift case conventions for Enums
Paul Cantrell
cantrell at pobox.com
Tue Dec 22 11:07:06 CST 2015
On Dec 21, 2015, at 5:58 PM, Michael Wells via swift-evolution <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.
I’d support this in principle.
The current uppercase convention is widespread enough that I’d really want some sort of alias-and-deprecate mechanism if the guideline were to change.
Cheers, P
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20151222/10ba85fc/attachment.html>
More information about the swift-evolution
mailing list