News for hackers. Stuff that matters.
Re:Alan Kay on the Meaning of “Object-Oriented Programming” ... by pacala on Sunday March 17, 2019 @06:10PM (#19417027)
The unit of reuse in programming is the function. Inheritance is just an often cumbersome mechanism to define bundles of functions.
Re:Alan Kay on the Meaning of “Object-Oriented Programming” ... by jryan49 on Sunday March 17, 2019 @07:14PM (#19417392)
Data structure can certainly be units of reuse. Widgets in a GUI toolkit for example.
Re:Alan Kay on the Meaning of “Object-Oriented Programming” ... by Retra on Sunday March 17, 2019 @10:41PM (#19418328)
Data structures are just functions that happen to operate on some common (usually opaque) data.