I want to parametrize some code, so that it does one of three different things, depending on the "value" of a parameter. The parameter is purely symbolic - there's no corresponding numerical value.
There's an enum.jl in examples and also some discussion of related ideas in issues. But this isn't (yet) in the language, and anyway it seems crude (these are symbols, not numbers). There's also the possibility of using an abstract type and then three concrete subtypes. That seems like too much work but, as far as I can tell, is the way to "do" algebraic types in Julia (see list.jl example). I guess I am overthinking this. But what is the right approach? Thanks, Andrew
