News for hackers. Stuff that matters.
Re:In Defense of Linked Lists by kibwen on Friday November 04, 2022 @06:55PM (#33475163)
It's an interesting suggestion to impose Option semantics on raw pointers by default (presumably with some alternative way to receive a nullable pointer, for completeness). But in the meantime, in your own codebase, it's easy enough to do `type Ptr<T> = Option<NonNull<<T>>`.
Re:In Defense of Linked Lists by josephg on Saturday November 05, 2022 @02:28AM (#33478547)
The problem there is that NonNull is exclusively a wrapper around *mut T. Using it discards the distinction with *const _ pointers. I think that has implications for correctness with Miri.