News for hackers. Stuff that matters.
Re:Notes on Programming in C (1989) by Nvorzula on Wednesday October 04, 2017 @12:06PM (#15401503)
> I argue that clear use of function pointers is the heart of object-oriented programming. Given a set of operations you want to perform on data, and a set of data types you want to respond to those operations, the easiest way to put the program together is with a group of function pointers for each type. This, in a nutshell, defines class and method. The O-O languages give you more of course - prettier syntax, derived types and so on - but conceptually they provide little extra.

I think that this might be an early hint at Go's interface system and its lack of of "complete" OOP support.

Re:Notes on Programming in C (1989) by pjc50 on Wednesday October 04, 2017 @12:09PM (#15401520)
Well, it's more like the "C with Classes" approach that was the precursor to C++; "group of function pointers for each type" is basically a vtable.