Personally I’d like a shortcut like AnyType, but it won’t work as a typealias, because it will create a circle reference between AnyType and AnyType<T>.
However, there is a small possibility that this type might be generalized like Any (now possibly AnyObject) directly into the language. That would probably allow us to use AnyType as a shortcut to AnyType<Any>. I’m not sure if this should be part of our proposal or not. I’d like to have some more feedback from the core team on this one. -- Adrian Zubarev Sent with Airmail Am 17. Februar 2017 um 14:24:14, Anton Zhilin (antonyzhi...@gmail.com) schrieb: I guess, now is the time? The response on this has been positive, both for the new metatype syntax and separation of static and dynamic metatypes. I’ve got one more feature in mind since then—a shorthand of AnyType ≡ AnyType<Any>. Would this addition be worth extra syntax? Is it feasible from current generics point of view? Anyway, it can be done in a separate proposal.
_______________________________________________ swift-evolution mailing list swift-evolution@swift.org https://lists.swift.org/mailman/listinfo/swift-evolution