Swift
Opaque vs existential types
From the caller's side, what's the difference between func make() -> some Shape and func make() -> any Shape?
Opaque vs existential types
From the caller's side, what's the difference between func make() -> some Shape and func make() -> any Shape?
SwiftShort answerAdvanced
You have an Iterator protocol with getNext() and hasNext(), and you want to change it fro…
#any #generic
SwiftShort answerBasics
What can Any, AnyObject, and NSObject each hold?
#any #existential
SwiftMultiple choiceExpert
What does this code print? …
#dispatch
SwiftShort answerAdvanced
In Swift, which method calls use static, table, and message dispatch?
#dispatch