logoalt Hacker News

IshKebabyesterday at 9:05 PM2 repliesview on HN

Fwiw you don't need unsafe for graphs or linked lists in Rust. At least not directly - these things can be abstracted. The petgraph crate is the most popular for graphs. I'm not sure about linked lists because linked lists are the wrong choice 99.9% of the time.

I've written hundreds of thousands of lines of Rust and outside of FFI, I've written I think one line of unsafe Rust.


Replies

fao_yesterday at 9:23 PM

[flagged]

show 3 replies
awesome_dudeyesterday at 9:32 PM

Show code

show 2 replies