To be honest, that’s why I suggested the idea of Literal.IntegerProtocol with the Protocol suffix.
If I’d read something like this extension Array : Literal.ArrayProtocol I won’t be confused what that protocol will do, because it doesn’t tell me the full behavior from its name. ErrorProtocol is very similar. To me it signals that it has something to do with the literal and arrays. If I’d look up the protocol and see that there is an associated type plus an initializer I’ll get the AHA moment and realize that with this protocol I can make an array literal into my type (or array in this example). I’m not trying to push my personal suggestion. Decide however is best for the whole community. ;) -- Adrian Zubarev Sent with Airmail Am 2. Juli 2016 um 17:50:06, Riley Testut via swift-evolution ([email protected]) schrieb: I kinda agree that these names still aren't the best. FWIW, I much preferred the originals, even if they could be misleading. What if we changed the names to be verbs instead of adjectives? Something like "IntegerLiteralTransforming"? > On Jul 2, 2016, at 10:35 AM, Dave Abrahams via swift-evolution > <[email protected]> wrote: > > >> on Sat Jul 02 2016, Anton Zhilin <[email protected]> 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. > > -- > -Dave > > _______________________________________________ > swift-evolution mailing list > [email protected] > https://lists.swift.org/mailman/listinfo/swift-evolution _______________________________________________ swift-evolution mailing list [email protected] https://lists.swift.org/mailman/listinfo/swift-evolution
_______________________________________________ swift-evolution mailing list [email protected] https://lists.swift.org/mailman/listinfo/swift-evolution
