4 ms·
Technically true if you enable it with the @objc flag. However, the documentation suggests that you are only use that when needing to interface with Objective-C
by randomdata 3y ago
Technically true if you enable it with the @objc flag. However, the documentation suggests that you are only use that when needing to interface with Objective-C code, so it is not how one would use Swift in a pure Swift environment. Swift's primary object model design is much more like C++.
- pjmlp 3y agoPlaying with words doesn't change the fact that Swift fully supports OOP, even without any presence of @objc annotations. Classes, interfaces,interface and class inheritance, polyphormism, variance, type extensions, compile time and dynamic dispatch, overloading, associated types.
- randomdata 3y agoThe original comment clearly states that, for the purposes of the comment, Kay's definition for OOP is in force. Your personal definition is cool and all, but has no relevance to the context established in this thread. Is there some value in this logically flawed correspondence that I have overlooked? What is it trying to add?