I feel like that'd deserve its own "Case study on ownership" section.


On Fri, Mar 21, 2014 at 11:36 PM, Huon Wilson <notifications@github.com>wrote:

> In src/doc/new-tutorial.md:
>
> > +## `enum`
> > +
> > +Enumerations are
> > +
> > +### Enums and matching (???)
> > +
> > +Introduce enums and matching here? Or after ownership? After 3.3?
> > +
> > +-->
> > +
> > +# Ownership
> > +
> > +~~~~
> > +struct Point {x: int, y: int}
> > +fn main() {
> > +    let mut p = ~Point { x: 1, y: 2 };
>
> The current tutorial (relatively) recently gained a "implementing a linked
> list" section
> http://static.rust-lang.org/doc/master/tutorial.html#implementing-a-linked-list
>
> People in IRC have said that they found that useful and clear (i.e. a
> concrete example with concrete explanation of move semantics etc).
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/mozilla/rust/pull/13035/files#r10860517>
> .
>



-- 
http://octayn.net/