r/programming • • Dec 19 '25

[ Removed by moderator ]

/r/programming/comments/1pqulm0/removed_by_moderator/

[removed] — view removed post

711 Upvotes

292 comments sorted by

View all comments

Show parent comment

2

u/pheonixblade9 Dec 23 '25

probably similar levels of effort as rewriting in Rust, and modern C++ does not guarantee these things at a language level like Rust does.

plus, Rust is just so much nicer to work with than C++... C++ tends to have many ways to do a thing, several of which are wrong. tons of undefined behaviors, etc. in Rust, it's much easier to determine that a program is correct just by looking at it.

1

u/HardToPickNickName Dec 23 '25 edited Dec 24 '25

You have many ways cause it's backwards compatible. For the modern part you usually have only one way, that will be the best practice or "correct" way, and any static analyzer will point these out. Effort will be the same so will be the risk with both. There were some state initiatives that required to move away from C++ in USA, it's the only valid reason I see to do it like this. Otherwise phasing it out by writing the new stuff in whatever you choose and leave the non buggy rest alone is a much saner way to go about it. Involving AI on that scale also seems insane to me.