I'd suggest extra::list, but it looks a little dated.
On Tue, Nov 12, 2013 at 6:21 AM, Oren Ben-Kiki <o...@ben-kiki.org> wrote: > For linked lists with no cycles, why not use Option<Rc<T>> (or RcMut)? > > > On Tue, Nov 12, 2013 at 4:06 PM, spir <denis.s...@gmail.com> 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 >> Rust-dev@mozilla.org >> https://mail.mozilla.org/listinfo/rust-dev >> > > > _______________________________________________ > Rust-dev mailing list > Rust-dev@mozilla.org > https://mail.mozilla.org/listinfo/rust-dev > >
_______________________________________________ Rust-dev mailing list Rust-dev@mozilla.org https://mail.mozilla.org/listinfo/rust-dev