microsoft / microsoft/typespec
Designate an int enum as "Flags"
Aperta
design:needed
- Lingua principale
- Java
- Stelle
- 5.9k
- Fork
- 394
- Merge medio
- 1g 23h
- PR unite (30g)
- 104
Descrizione
[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?
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.