this post was submitted on 17 Sep 2024
34 points (94.7% liked)
C++
1718 readers
48 users here now
The center for all discussion and news regarding C++.
Rules
- Respect instance rules.
- Don't be a jerk.
- Please keep all posts related to C++.
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
The problem with c++ is that it allows people to do whatever they want. Turns out: people are dumb. Rust solved that problem. Nothing more, nothing less.
Rust still allows people to do (basically) whatever they want via unsafe blocks.
Yeah but I have written a lot of Rust and I have yet to use a single
unsafe
block.Saying "but.. unsafe!" is like saying Python isn't memory safe because it has
ctypes
, or Go isn't memory safe because of itsunsafe
package.See my reply to funtrek's reply.