Filed as rdar://22109003
-
-
@eridius There may be plenty of benefits to that — but it makes app-writing a little more difficult. - View other replies
-
@brentsimmons It seems to me the occasional `foo.map({$0})` is a small price to pay for avoiding hidden performance gotchas. -
@eridius I’d argue that, instead, there shouldn’t be a hidden performance gotcha. - View other replies
-
@brentsimmons That would be nice, but the only way to solve this without a new array basically requires all protocols to use message-passing -
@eridius Works for me! - View other replies
-
@brentsimmons Message passing is a performance gotcha :P - View other replies
-
@eridius But barely. We can write fast apps in Objective-C. - View other replies
-
@brentsimmons Yeah, but you should be able to write faster ones in Swift. - View other replies
- Show more
-
-
@brentsimmons Non-@objc protocols use a virtual function table (called a protocol witness table) rather than message-passing. -
@brentsimmons This means that objects typed as EmailMessage have a different table pointer than those typed as NodeRepresentedObject.
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.
Brent Simmons
Kevin Ballard
RT