For linked lists with no cycles, why not use Option<Rc<T>> (or RcMut)?
On Tue, Nov 12, 2013 at 4:06 PM, spir <[email protected]> wrote: > PS: What would be, in fact, the rusty way for a simplissim linked list. I > use Option<~Cell> for now, to have something clean (None) to end the list, > since Rust looks rather functional. But as always with Option this way > quite obscures and complicates the code (Some() expressions, match > expressions...). I'd rather just use a NULL pointer, for here it is fully > safe. But this does not look rusty at all, I guess. > What is your view? > > > Denis > > > > > _______________________________________________ > Rust-dev mailing list > [email protected] > https://mail.mozilla.org/listinfo/rust-dev >
_______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
