- Proposal: SE-0097
- Author: Erica Sadun
- Status: Rejected (Rationale)
- Review manager: Chris Lattner
This proposal normalizes naming for "negative" attributes by adopting a rule
that replaces property names starting with no
with adjectives
starting with non
.
Swift-evolution thread: RFC: didset and willset
Swift is an opinionated language. One opinion it adheres to is that attributes should be built around "non", and not "no", avoiding camel casing bumps. Converting no
-prefixed attributes to non
-integrated attributes establishes a single word that describes how each attribute modifies the syntax they decorate.
Upon adoption, Swift will rename:
noreturn
tononreturning
noescape
tononescaping
This proposal requires migration support to rename keywords that use the old convention to adopt the new convention. This is a simple substitution with limited impact on existing code.
The core team may consider exceptions for terms of art. For example, "no return" indicates "there is no return from this function", as in the "point of no return".