3 ms·
Earlier discussion for context: https://news.ycombinator.com/item?id=22075076 https://news.ycombinator.com/item?id=22075076
by _han 7y ago
Earlier discussion for context: https://news.ycombinator.com/item?id=22075076 https://news.ycombinator.com/item?id=22075076
- MuffinFlavored 7y agoHow 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.