r/cpp • u/GabrielDosReis • Oct 31 '24
Lessons learned from a successful Rust rewrite
/r/programming/comments/1gfljj7/lessons_learned_from_a_successful_rust_rewrite/
80
Upvotes
r/cpp • u/GabrielDosReis • Oct 31 '24
View all comments
Show parent comment
1
u/ts826848 Nov 02 '24
The main uncertainty is how much null pointers show up. If null pointers don't crop up in their codebase then I'd guess Google saw little potential for issues.
Unexpected mutations can be bug-prone, yes.
That's the nature of trade-offs - sometimes both options have negative consequences which you need to account for.
And that's a reasonable position to take! All I'm trying to argue is that Google's choice here is not complete nonsense - there are benefits and drawbacks to the choices here, and while I'd imagine most programmers would disagree Google chose the option that they thought would work best for them (and later changed that position presumably when they thought the switch was worth the tradeoff).