Hacker News new | ask | show | jobs
by tialaramex 30 days ago
It's not just this, it's everywhere. It's as though C++ is an alternative not to other programming languages but to the entire discipline of Computer Science. The cases where this results in C++ having its own weird names for existing ideas are slightly annoying but the cases where the same terms mean something else quickly become infuriating.

The choice (in C++ and then Java and C#) to pretend that these "member functions" are somehow part of the data structure also more or less guarantees that some students will end up confused about what's actually in the physical representation. Of course the "git gud noob" mindset of C++ doesn't see that as a problem :/

1 comments

To be fair, C++ isn't alone in this, lets go back into the 1970 and 1980's and compare OOP languages, including failing ones, and FP languages as well, to see how common many of those terms have prevailed to modern times, in what shape and form.

C++ has plenty of warts to complain about, however complaining for the sake of complaining usually doesn't win attention.

I checked how Simula calls its object methods, but it just uses the term procedure as for normal top level functions. At least it shows that the term method is not universal.

I think that C had members, so members that are functions just became that. But then again, members that are types are usually called nested types.