I agree about C and C++, but is there a language that exists today that you think would be better for writing security-conscious code? Should a language be invented that is specifically for writing security-conscious code?
Now if you go with a weakly typed language like Javascript there are a whole other class of bugs that can bite you:
https://medium.com/@octskyward/type-safety-and-rngs-40e3ec71...
... so don't use those.