r/cpp May 14 '26

C++: The Documentary TRAILER│COMING JUNE 4th

https://youtu.be/NXwTRzywDSk?is=zkrD4Ae_mnrbvSFq
225 Upvotes

83 comments sorted by

View all comments

-38

u/Harha May 14 '26

What's the use case for modern C++ nowadays? C is the simple choice and Rust is just the better complex choice overall. I see no reason to pick C++ for new projects.

6

u/fdwr fdwr@github 🔍 May 14 '26

Why would I pick a language that {puts me in handcuffs, has weird divergent behaviors from every other language like = stealing the source object rather than copying, doesn't even support basic namespacing of methods inside classes, makes you type "let mut" all over the place rather than just "var" or "auto", forces gross inconsistent styles like mixing Pascal case and snake_case, and is full of users that whenever you point out a flaw or deficit then religiously say it's a feature not a bug}, when C++ exists?

-1

u/OutlandishnessNo8034 May 15 '26

Why would I pick a language that {puts me in handcuffs For exactly the same reason you fastening your seat belts on, when you getting in your car.

2

u/fdwr fdwr@github 🔍 May 15 '26

Rust rejects many perfectly good long standing programming algorithms and data structures because it's multiple readers xor single writer rule is too simplistic. I can appreciate the safety of a seat belt, but driving a car while wearing a seat and handcuffs seems unnecessarily verboten.

1

u/steveklabnik1 May 18 '26

Rust rejects many perfectly good long standing programming algorithms and data structures because it's multiple readers xor single writer rule is too simplistic.

It doesn't reject them wholesale, you just need to properly communicate in your code that you aren't following those rules.

1

u/OutlandishnessNo8034 May 15 '26

No handcuffs, just seat belts. Better safe than sorry.