5 ms·
Err https://github.com/petgraph/petgraph https://github.com/petgraph/petgraph What are you asking for exactly?
by IshKebab 6mo ago
Err https://github.com/petgraph/petgraph https://github.com/petgraph/petgraph
What are you asking for exactly?
- awesome_dude 6mo agoI don't think it's unreasonable, even though I am getting marked down for daring to ask, for people who are making assertions, even if they are well understood *within their own community* (that is, not necessarily universally known) to show examples of what they are talking about. You're correcting someone, so it's clear that your understanding isn't universal, and example code is the absolute minimum.
- rascul 6mo agoIt doesn't seem clear what code you're asking for.
- deleted 6mo ago[deleted]
- deleted 6mo ago[deleted]
- zipy124 6mo agoForgive me if I've mis-understood this thread, but there are unsafe declerations in that crate. Is there really any difference between using unsafe in your own code, versus wrapping it inside some crate? I guess you are making the point that the user does not have to concern themselves with the unsafe declarations?
- simonkagedal 6mo agoI would say yes, there’s a difference, in general. I would much rather leave the unsafe code to crates used and tested by many other applications, than have them in the application code itself.
- IshKebab 6mo ago> Is there really any difference between using unsafe in your own code, versus wrapping it inside some crate? Yes, in the same way that there's a difference between using `std::Vec` (which uses `unsafe`), and writing an unsafe Vec class yourself. Or even the difference between using Python (which wraps an unsafe CPython implementation), and doing everything in unsafe Python code. The difference is that widely used code like CPython and `std::Vec` are much much better tested and audited than anything I would write myself, because so many people use them. This is a continuum so something like petgraph is going to be not as well tested as std::Vec but still way better tested than anything I've written.