csharplang icon indicating copy to clipboard operation
csharplang copied to clipboard

Add doc about ref-struct lifetime variance

Open agocke opened this issue 7 months ago • 4 comments

This should wrap up any formalization holes we have around lifetime variance and nested ref fields

agocke avatar Jun 02 '25 05:06 agocke

@jaredpar

agocke avatar Jun 02 '25 05:06 agocke

Kinda wary about the number of lifetime docs we have now. Debating if we should just add this directly into the low level struct improvements doc or put it in the expand ref one.

jaredpar avatar Jun 02 '25 16:06 jaredpar

Seems like a fine idea to me. Happy to centralize. I mention at the top that it’s based on the low-level improvements doc.

agocke avatar Jun 02 '25 16:06 agocke

As long as it's describing existing behavior we should just update the existing doc.

jaredpar avatar Jun 02 '25 16:06 jaredpar