I rather write garage code than using slop

you are viewing a single comment's thread
view the rest of the comments
[–] 1 point 18 hours ago (1 child)

Modern C++ changed a lot!

You are supposed to use shared_ptr (automatic reference counted pointer) and unique_ptr(statically checked unique pointer) and not create raw C-style pointers anymore. It still has a lot of weird niche cases that need to be avoided, but memory management is definitely much easier, so in many ways it's safer at runtime than C, while being still much more obscure than C.

I still agree with you that a more modern language would be even better, especially for learning!

  • source
  • parent
  • hideshow 1 child comment