- Proposal: TBD
- Author: Erica Sadun
- Status: TBD
- Review manager: TBD
This proposal normalizes naming for "negative" attributes by adopting a rule
that replaces camel-cased property names starting with no
with adjectives
starting with non
.
Swift-evolution thread: RFC: didset and willset
Converting no
-prefixed attributes to non
changes them into a single word that
describes how they modify 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 that should limit effect on 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".