Dave Abrahams via swift-evolution <swift-evolution@...> writes:
> on Sat Jul 02 2016, Anton Zhilin <swift-evolution <at> swift.org> wrote:
>
> > -1 from me. I suggest to wait until we get generic protocols
> > in Swift 4, then we can use the following:
> >
> > protocol From<T> {
> > init(_ from: T)
> > }
> >
> > And deprecate all the weird Convertibles.
>
> Even if we could do that, “From” would never be an appropriate name for
> the ability to express a type as a particular kind of literal.
I agree. Take whatever suffix you choose for the protocol series being
discussed, and name my protocol after that. Expressable<Int>,
Convertible<Bool>, Representable<String> all sound good to me. We just
need to pick an appropriate name.
_______________________________________________
swift-evolution mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-evolution