3 ms·
How many `unsafe` blocks of code are there and how many of them can be refactored? What's a t-shirt size estimate on the level of effort to convert the code?
by MuffinFlavored 7y ago
How many `unsafe` blocks of code are there and how many of them can be refactored? What's a t-shirt size estimate on the level of effort to convert the code?
- atoav 7y agoUnsafe blocks are not per se a bad thing — think of them more of a "trust me here and give me manual control"-override. Figuring out whether an author's trust is earned or if they just used unsafe to stop the borrow checker from nagging is non-trivial for precisely that reason. So you question is very likely impossible to answer even by the author himself. If you are really eager to know, dig yourself.