Elektrine lite

← Feed

@idkrn@infosec.exchange

Post #4182669

2026-07-29 04:32 UTC

@bugaevc@floss.social that’s a mistake allowed by the language. Null deref is UB is it not? Calling unwrap() is explicitly telling the program to panic. It’s not really meant for production use. Think of it like todo!()

Replies (1)

  • @bugaevc@floss.social 2026-07-29 04:40

    @idkrn@infosec.exchange * There is not really a UB in languages like Java and Python (you're thinking of C), dereferencing null is well-defined, in Java it will throw a NullPointerException * There is absolutely unwrap (or expect, etc) usage in any serious/realistic Rust code base

    Open ##4205298