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 explicit forms?
Filed an issue (SR-212 <https://bugs.swift.org/browse/SR-212>) and pull request (#470 <https://github.com/apple/swift/pull/470>).
_______________________________________________ swift-dev mailing list swift-dev@swift.org https://lists.swift.org/mailman/listinfo/swift-dev