4 ms·
> However that LinkedList implementation requires unsafe{} to be implemented. Can it be implemented without using unsafe? Do they have in plans to get rid of
by kovrik 9y ago
> However that LinkedList implementation requires unsafe{} to be implemented.
Can it be implemented without using unsafe?
Do they have in plans to get rid of all unsafe from std?
- kinghajj 9y agoNo on both counts, the entire point of "unsafe" is to form safe abstractions around unprovably safe code.
- viraptor 9y agoIt can't. And there are many things std does that are in unsafe blocks. There's nothing wrong with that if you have a specific use case for it. (And wrap that functionality in a safe function)