microsoft / microsoft/typespec
Designate an int enum as "Flags"
Open
design:needed
- Dominant language
- Java
- Stars
- 5.9k
- Forks
- 394
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 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?
Contributor guide
Assessment
This issue has not been assessed yet.