microsoft / microsoft/typespec
Designate an int enum as "Flags"
- Langage dominant
- Java
- Étoiles
- 5.9k
- Forks
- 394
- Merge moyen
- 1 j 23 h
- PR mergées (30 j)
- 104
Description
[Some languages have decorators](https://learn.microsoft.com/en-us/dotnet/api/system.flagsattribute?view=net-7.0) that can add functionality to enums that are meant to be a set of bit fields. Will [CADL enums](https://microsoft.github.io/cadl/docs/language-basics/enums/) support a decorator for enums so that language generators can take advantage of this?
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Start with the linked CADL enums documentation and the referenced FlagsAttribute behavior. Determine how enum decorators are represented and how language generators consume them. Done means the issue's intended decorator support and generator-facing semantics are specified and consistently supported.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Domaine
- compilers
- Type d'issue
- Fonctionnalité
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 25/100