Hacker News new | ask | show | jobs
by jerf 1598 days ago
The point is to make points in a simple environment.

Anything small enough to clearly make points about unsafe Rust is almost certainly small enough to be done in safe Rust, defeating the purpose.

1 comments

If it’s too big for an example, it’s almost certainly too big for “trust me, I know this is safe”.
I don't see how you can make this claim. An example is meant to be understandable after a cursory introduction and communicate an idea to the reader. If it takes me a day to understand the "example", it's not useful as an example, but real problems often take that long to completely understand in any language.