News for hackers. Stuff that matters.
Re:Go nulls and SQL by imron on Monday May 23, 2022 @09:50PM (#31487149)
> You cannot use a null pointer in Rust.

Yes you can: https://doc.rust-lang.org/std/ptr/fn.null.html

You just won't use it unless you're doing FFI or similar things.

Re:Go nulls and SQL by worik on Tuesday May 24, 2022 @03:18PM (#31496377)
FFI is unsafe, by definition.
Re:Go nulls and SQL by imron on Tuesday May 24, 2022 @07:19PM (#31498696)
You can still use null pointers in safe rust (see the link I posted which is 100% safe rust), you just can’t deference then.
Re:Go nulls and SQL by worik on Tuesday May 24, 2022 @09:18PM (#31499538)
Ok.

I meant "using null pointer" means dereference it. But careless language....