[swift-build-dev] Should Version be StringLiteralConvertible?

Ling Wang an00na at gmail.com
Wed Dec 30 15:16:53 CST 2015


Because Version.init?(_ characters:) is really failable this code is very dangerous:
extension Version: StringLiteralConvertible {
    public init(stringLiteral value: String) {
        self.init(value.characters)!
    }

Is the convenience worth it?


More information about the swift-build-dev mailing list