r4cppp icon indicating copy to clipboard operation
r4cppp copied to clipboard

Named and parametric lifetimes

Open nrc opened this issue 10 years ago • 2 comments

Should also cover lifetime elision. I prefer to cover lifetime params in depth before getting on to the elision rules.

Not sure about the ordering with this tut. On one hand I want it to come pretty soon after borrowed references. OTOH, covering some more of the basics first might actually be more useful, but then we get into tricky error messages and elision issues.

nrc avatar Apr 20 '15 06:04 nrc

Remember `'static'. And subtype variance.

nrc avatar Apr 20 '15 06:04 nrc

And lifetime bounds on both lifetimes and traits (cc #2).

nrc avatar Apr 20 '15 06:04 nrc