[swift-dev] [stdlib] Replace `.Some(x)` and `.None` by `x` and `nil`, respectively
patrickpijnappel at gmail.com
Sat Dec 12 19:45:34 CST 2015
The standard library already predominantly uses the latter form but still
contains regular usages of the former. For consistency and reduced clutter
I'd propose to use the latter form throughout. The SIL for both forms is
identical. Also Optional<T> takes precedence over any other nil literal
convertibles, so no issues there. Are there any specific reason to use the
Filed an issue (SR-212 <https://bugs.swift.org/browse/SR-212>) and pull
request (#470 <https://github.com/apple/swift/pull/470>).
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-dev