Have you taken a look at enums? They are built in or there is a package with extended functionality.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Convert String to function name | 28 | 15434 | December 25, 2023 | |
| Understanding few syntax of Julia code | 21 | 1781 | January 19, 2021 | |
| How do I make a dispatch table using multiple dispatch instead of Dict? | 20 | 1546 | May 9, 2021 | |
| Why does Julia prefix columnames and colors with a colon :? | 29 | 5885 | December 5, 2018 | |
| Metaprogramming - defining a function | 36 | 3073 | October 12, 2018 |