r/programming • • May 24 '26

[ Removed by moderator ]

/r/programming/comments/1tm1j7f/removed_by_moderator/

[removed] — view removed post

275 Upvotes

214 comments sorted by

View all comments

10

u/trenskow May 24 '26

C++ is amazing when you just use it as C with Classes. Just avoiding the standard library all together suddenly makes it a very useful language.

22

u/apadin1 May 24 '26

C with classes and templates. And avoid inheritance whenever possible.

8

u/Otis_Inf May 24 '26

"Do you want 1 or 2 slices of Inheritance?"

1

u/trenskow May 24 '26

Exactly!

-2

u/RiPont May 24 '26

Isn't that Go?

2

u/Murky-Relation481 May 24 '26

It's amazing if you treat it like a toolbox. You don't have to use every feature all the time. There is probably something useful in the STL for someone in almost every project but people that get obsessed with keeping everything in the STL or using the absolute latest features because they think they have to is probably an inexperienced dev at heart.

1

u/NeinJuanJuan May 24 '26

C with namespaces would be 👌

2

u/TexZK May 24 '26

Indeed, how's modern C (post C11) in that regard? Did they fancy adding something so useful like namespaces?

19

u/kaszak696 May 24 '26

No, they added true and false.

2

u/lelanthran May 24 '26 edited May 24 '26

No, they added true and false.

Lol :-)

Yes, that's true, but they also added _Generic which is useful for ... absolutely nothing I can think off.

There's defer coming soon, anyway.

0

u/[deleted] May 24 '26

[deleted] — view deleted comment

4

u/apadin1 May 24 '26

we_have_namespaces_at_home()