News for hackers. Stuff that matters.
Re:Why writing a linked list in safe Rust is so damned hard by kovrik on Thursday February 22, 2018 @08:47PM (#16443515)
> 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?

Re:Why writing a linked list in safe Rust is so damned hard by kinghajj on Thursday February 22, 2018 @08:54PM (#16443561)
No on both counts, the entire point of "unsafe" is to form safe abstractions around unprovably safe code.
Re:Why writing a linked list in safe Rust is so damned hard by viraptor on Thursday February 22, 2018 @08:56PM (#16443571)
It 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)