4 ms·
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 priv
by SPBS 6y ago
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)
- dragonwriter 6y ago> 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.
- hnick 6y agoEven 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.
- throwaway894345 6y agoThe whole GObject ecosystem is hacky object oriented C, to provide another suite of examples.
- hnick 6y agoI 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.
- throwaway894345 6y agoYeah, I delved into it when I was working with C, but by that time I had no interest in reproducing inheritance but only interfaces.