Remix.run Logo
echelon an hour ago

No. Don't say "you're holding it wrong". The language says "safe" on the tin. It advertises safety. This shouldn't be possible.

This is a null pointer. In Rust.

Unwrap needs to die. We should all fight to remove it.

aw1621107 an hour ago | parent | next [-]

> The language says "safe" on the tin. It advertises safety.

Rust advertises memory safety (and other closely related things, like no UB, data race safety, etc.). I don't think it's made any promises about hard guarantees of other kinds of safety.

dafelst an hour ago | parent | prev [-]

panics are safe, what are you talking about? It is nothing like a null pointer.