- Proposal: TBD
- Author: Erica Sadun
- Status: TBD
- Review manager: TBD
This proposal adopts consistent conjoined keyword lowercasing.
Swift-evolution thread: RFC: didset and willset
Swift is an opinionated language. One opinion it adheres to is that keywords should
use conjoined lowercasing. Conjoined lowercase terms already in the language include typealias
,
associatedtype
, and fallthrough
. Using this casing style enables programmers to treat
keywords as atomic concepts. This proposal formalizes this rule and fixes current inconsistencies.
Upon adoption, Swift will rename didSet
and willSet
to didset
and willset
.
Future expansions to the language will follow this adopted rule, for example didchange
.
This proposal deliberately omits the dynamicType
keyword, which will be addressed
under separate cover: to be moved to the standard library as a standalone global function.
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.
Not adopting this rule for Swift.