Re:I think C++ is still a desirable coding platform compared...
by fwsgonzo on Wednesday November 22, 2023 @09:05AM
(#38379283)
My point is that I am acknowledging that C and C++ needs more discipline. I'm not saying we eliminated this class of bugs!
Re:I think C++ is still a desirable coding platform compared...
by mrcsd on Wednesday November 22, 2023 @09:48AM
(#38379932)
It sounds like you're working on a mature C++ codebase, so yeah, good reason to stick with that. But I'm curious whether you feel it's worth spending effort on this discipline, outside of working on a particular codebase?
I don't know C++, but being freed from making effort to avoid a class of bugs was easily enough for me to learn Rust instead (not that this was the only reason).
Re:I think C++ is still a desirable coding platform compared...
by fwsgonzo on Wednesday November 22, 2023 @09:51AM
(#38379964)
I think if I had the opportunity to learn Rust, and some guidance so that I didn't have to do everything the hard way (essentially how I learned C and then C++), then I would!
So far I have used Rust very little, but what I have seen I have liked. I especially liked the much simpler inline assembly in Rust.
Maybe you are at a higher level than them though.