← Back to context

Comment by lelanthran

1 day ago

All the foot guns in C are still in C++, and C++ adds a significant multiple more.

The regular table saw is still in the new workshop, and the new workshop adds a SawStop and another regular table saw.

Literally untrue. Two words: stronger typing.

  • Memory corruption magnets like iterator invalidation, std::string_view or std::span are on a whole different level than the footguns that were inherited from C. At least with C style raw pointers you know that you have to be careful when you see one, in C++ the unsafety is lurking in hidden places sprinkled all over the stdlib and comes in all shapes and forms.