microsoft / microsoft/typespec
Designate an int enum as "Flags"
- Ngôn ngữ chính
- Java
- Star
- 5.9k
- Fork
- 394
- Merge trung bình
- 2 ngày 2 giờ
- Pull request đã merge (30 ngày)
- 104
Mô tả
[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?
Hướng dẫn đóng góp
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Lĩnh vực
- compilers
- Loại issue
- Tính năng
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 25/100