I'm curious: What's better about Swift's `defer` than `try/finally` in ObjC or Java (or virtually any other language since 1990)?
-
-
-
-
-
-
@stephencelis@mjtsai@owensd At cost of another scope. And I said it *doesn't* count as an advantage. It's a difference w/o a distinction. -
-
@stephencelis@mjtsai@owensd Presumably scopes are't entirely free in Swift. But again, it's not important. I wouldn't argue at that level. - View other replies
-
@iTod Swift optimizes a lot at compile time. Wrapper structs are completely free, so `do` scopes may be, too. - Show more
-
-
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.
Todd Ditchendorf
David Owens II
Rogelio Gudino
Michael Tsai
Stephen Celis