News for hackers. Stuff that matters.
Re:Pretending OOP Never Happened by SPBS on Friday May 15, 2020 @09:33PM (#23199632)
If Go's paradigm is considered OO then what would you consider non OO? Seems like almost every language has the baseline of struct and struct methods (with private and public semantics)
Re:Pretending OOP Never Happened by dragonwriter on Friday May 15, 2020 @09:38PM (#23199661)
> If Go's paradigm is considered OO then what would you consider non OO?

Classic, pre-object Pascal. C. Very little new in the last few decades, because OOP is a very influential paradigm.

Re:Pretending OOP Never Happened by hnick on Friday May 15, 2020 @10:04PM (#23199823)
Even though it's not OO that doesn't stop people adding their own hacked OO to C. I think the Quake source code had a lot of this, structs with function pointers. OO is such a natural fit for games in particular it finds a way to exist.
Re:Pretending OOP Never Happened by throwaway894345 on Friday May 15, 2020 @10:28PM (#23199952)
The whole GObject ecosystem is hacky object oriented C, to provide another suite of examples.
Re:Pretending OOP Never Happened by hnick on Friday May 15, 2020 @11:13PM (#23200168)
I personally found hacked OO ala Perl to be the first time I really understood it, even after years of class diagrams at university. The abstraction got in the way. I needed the nuts and bolts.
Re:Pretending OOP Never Happened by throwaway894345 on Saturday May 16, 2020 @11:51AM (#23204402)
Yeah, I delved into it when I was working with C, but by that time I had no interest in reproducing inheritance but only interfaces.