The $9B James Webb Space Telescope Runs JavaScript
theverge.com
theverge.com
It would be cool to see a style or testing guide to see how they prevented bugs from shipping.
I used to find this surprising. I still do, but I used to, too.
Javascript is practically safer because each crash leaves an incredibly obvious stack trace about what caused the crash. It leads to programs with less bugs then C++.
I can see that.
Iterators don't do what you think they do. A random access iterator on std::vector is practically indistinguishable from a pointer. It doesn't check for out of bounds, and if you resize the vector, your iterator can be "invalidated", meaning it quietly points to memory that has been freed already.
You can even do arithmetic on random access iterators the way you do with pointers.
I agree that smart pointers are nice.