News for hackers. Stuff that matters.
Re:Classes vs. Data Structures by narag on Monday June 17, 2019 @06:40PM (#20208055)
Careful. The author is not using "data structure" with the standard Computer Science meaning, but as C language struct. Standard data structures were actually the equivalent to current classes and were associated with a set of functions.

If you bother to take a look to C APIs, you'll find the familiar "handle" parameter, equivalent to the "this" or "self" of OO languages. Setting aside all the philosophical mumbo jumbo, OO is syntactic sugar over those interfaces.

Re:Classes vs. Data Structures by roelschroeven on Tuesday June 18, 2019 @05:22AM (#20210923)
> The author is not using "data structure" with the standard Computer Science meaning, but as C language struct.

The text would have been a lot clearer if that would have been more explicit from the beginning!