[swift-evolution] Better Self support with class funcs

James Campbell james at supmenow.com
Tue Dec 15 05:56:24 CST 2015


Would be great to construct the current class in a class function like so

class func makeMeCheese() -> Self
{
 return Self(type: .Cheddar);
}

-- 
 Wizard
james at supmenow.com
+44 7523 279 698
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20151215/e22f5fc8/attachment.html>


More information about the swift-evolution mailing list