Alternative term for "non-ref `struct"

Aperta
#1,861 1 commento 0 reazioni 2 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@jskeet ci sta già lavorando.

Dal 5/11/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

In reviewing #1817, we see that the term "non-ref struct" was used.

This relates to discussions on how we spec record types, and nullable reference types.

We'd like to avoid adding the term "non-ref struct" when we already have the long-used term "strut". In the same fashion, we want to avoid the terms "non-record class" and "non-record struct".

Finally, we should never introduce "non-ref, non-record struct".

To fix this, we want to do the following:

  • Use "class" and "struct" when it means all class types, and all struct types, respectively.
  • Define and use a different phrase consistently to mean "A class, excluding those with the record modifier".
  • Define and use a different phrase consistently to mean "A struct, excluding those with the record, ref or both those modifiers"

We can leverage the language for a "non-nullable class", if it applies.

Lingua principale
C#
Stelle
818
Fork
100
Merge medio
3g 13h
PR unite (30g)
21

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di dotnet/csharpstandard

Tutte le issue di dotnet/csharpstandard

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.