this post was submitted on 02 Sep 2024
754 points (99.3% liked)

Programmer Humor

32000 readers
1744 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 

Incase it doesn't show up:

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 5 points 2 weeks ago (1 children)

An abstract class with no member variables serves the same purpose in C++.

[–] [email protected] 2 points 2 weeks ago (2 children)

The only problem is to ensure the entire team agrees to only use it like an interface and nothing else. But I guess that’s the only proper way to do it in C++, for now.

[–] [email protected] 3 points 2 weeks ago

That's not really the job of the language, though. If they can't read the design docs and source annotations, they don't really have any business touching anything.

[–] [email protected] 2 points 2 weeks ago

this seems like the only proper way to do anything in C++. it’s a language where there’s 5 ways to do 1 thing and 1 way to do 5 things.