Re:Introducing Swift
by badman_ting on Monday June 02, 2014 @04:21PM
(#7836062)
I don't think syntax is really the issue. Using objc these days is clunky for reasons besides syntax.
[ Parent
| on HN ]
Like dealing with ARC, which is still clunky:
@lazy var asHTML: () -> String = {
[unowned self] in
if let text = self.text {
return "<\(self.name)>\(text)</\(self.name)>"
} else {
return "<\(self.name) />"
}
}
Excerpt From: Apple Inc. “The Swift Programming Language.” iBooks. https://itun.es/us/jEUH0.l