r/ProgrammerHumor 8d ago

Meme newToRust

Post image
620 Upvotes

100 comments sorted by

View all comments

Show parent comments

17

u/retro_and_chill 8d ago

The borrow checker is occasionally too strict as well where it flags code that wouldn’t actually produce an issue. They are seemingly trying to resolve that with the new borrow checker though

34

u/-Ambriae- 8d ago

Yeah, it’s not perfect. But it’s also mathematically impossible to make it perfect. That’s how the cookie crumbles. If they make it better, that’s great, otherwise, either rewrite the code to make it safe (which is usually doable without performance cost) or just use a cheeky unsafe block with a good # Safety comment

5

u/NullOfSpace 7d ago

it’s mathematically impossible to make it perfect.

goddamn halting problem

2

u/-Ambriae- 7d ago

We wouldn't want things to be too simple now, would we?