[swift-evolution] Convention to avoid conflicts with keywords
felixcca at yahoo.ca
Wed Dec 23 17:05:03 CST 2015
Swift uses backticks: for `case` in cases
Additionally, you can use (almost) any character inside backticks, including operator characters.
> Le 23 déc. 2015 à 18:01:20, Rudolf Adamkovič via swift-evolution <swift-evolution at swift.org> a écrit :
> In Python, a single trailing underscore is used by convention to avoid conflicts with language keywords:
> for case in cases
> What about Swift?
> Also, it would be great to document this in Swift’s API Design Guidelines.
> Rudolf Adamkovic
> swift-evolution mailing list
> swift-evolution at swift.org
More information about the swift-evolution