@mjtsai I can see the value in macros like that. But I don't see a way to do that in Swift. Or rather, that doesn't fit with The Swift Way.
@mjtsai Because, unlike Obj-C, Swift init() doesn't return the self object.
-
-
@roopeshchander Yeah. Will be interesting to see how this evolves in Swift. Not sure I like the current way of wrapping in class methods. -
@mjtsai Beta 4: "Swift does not support object initializers that fail by returning null." (Workaround: factory method.) - View other replies
-
@mjtsai That's mentioned as a "Known issue" in the release notes. So maybe there's some other way planned?
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
Roopesh Chander
Michael Tsai