[swift-users] Comparing POP to OOP

Daniel Tartaglia danielt1263 at gmail.com
Wed Feb 17 09:39:26 CST 2016


Ah yes Wallacy! That’s the point I’m making. 

Procedural, Functional, Modular, and Object Oriented programming are different paradigms. Languages can cater to different paradigms by making it easier to code in some than others, but the paradigm has nothing to do with the language per se. You can do OO in C with function pointers, it just requires more typing.

The point I’ve been trying to make to Jon is that POP is not a new paradigm, but it *is* a better syntax for the same paradigm. Better syntax is a great thing and deserves accolades, but don’t make it out for more than it is.


> On Feb 17, 2016, at 9:20 AM, Wallacy <wallacyf at gmail.com> wrote:
> 
> If you go further, you will realize that Objects are only Structures with some function pointers.
> 
> The differences on structured programming and object-oriented programming can be reduced to a "syntax level" too.
> 
> POP for example encourages more use of multiple (inheritance|composition) than OO. The pattern is more important than syntax.
> 
> However I agree, Swift POP still have many limitations and almost no innovation. There are several proposed improvements to protocols that should arrive in the next versions, maybe then people start to consider POP a true paradigm. For now is just a syntax sugar for Composition over inheritance.
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20160217/4e612fa4/attachment.html>


More information about the swift-users mailing list