I often just create a tiny module containing only the enum, like Encapsulating enum access via dot syntax - #2 by mbauman.
tkoolen
5
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Enum tag collision | 2 | 484 | August 8, 2018 | |
| Adding members to an existing Enum | 5 | 445 | January 19, 2024 | |
| Encapsulating enum access via dot syntax | 13 | 4879 | August 31, 2021 | |
| ANN: EnumX.jl -- improved enums for Julia | 11 | 3546 | November 5, 2023 | |
| Solving the drawbacks of @enum | 15 | 4985 | June 23, 2023 |