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