[swift-evolution] [Discussion] Seal `T.Type` into `Type<T>`

Adrian Zubarev adrian.zubarev at devandartist.com
Sun Jul 17 06:07:45 CDT 2016


For those who are interested, this is the latest version of the proposal: https://gist.github.com/DevAndArtist/1332e1458e0791f8f4b1649cbeb4fce5

Casting as written in this proposal works in theory, but I had some problems implementing it, so it does work with protocols conformance

We also have some alternative ideas which are NOT YET merged into this single proposal. Stay patient.



-- 
Adrian Zubarev
Sent with Airmail

Am 16. Juli 2016 um 19:33:22, Adrian Zubarev (adrian.zubarev at devandartist.com) schrieb:

I’m responding anything that is related to your last version directly on gist rather than here, because it’s me not understanding a few things of that version.

That’s why our main version tackles the whole calculation inside Type<T> rather than splitting it into the Mirror type.

I’m totally fine to consider in the alternative section. :)



-- 
Adrian Zubarev
Sent with Airmail

Am 16. Juli 2016 um 18:59:59, Anton Zhilin (antonyzhilin at gmail.com) schrieb:

It looks like Github does not send notifications. Just in case, I’ve responded here.

By the way, I very much like how you recommend to use someType.metatype.staticMethod() and avoid any other usage of metatypes.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160717/1a304211/attachment.html>


More information about the swift-evolution mailing list