> On Mar 25, 2016, at 12:39 PM, Joanna Carter <[email protected]> > wrote: > > >> You'd need to extend Int to conform to the protocol for the cast to succeed. > > Ah, yes. And there lies the reason behind wanting to be able to extend Any - > avoiding having to extend every possible type likely to be used - mutter, > mutter ;-) > > Is it worth putting i a formal proposal for the extension of Any, or has that > already been done?
You could. For this particular use case, though, I think we really just want a more direct way of using *.Type values as types themselves. -Jeo _______________________________________________ swift-evolution mailing list [email protected] https://lists.swift.org/mailman/listinfo/swift-evolution
