That certainly is a clever way to do it :) and probably more performant than 
pattern matching. The downside is that it's less readable and I'd have to 
memorize what each of the enum values represent. And readablility is high on my 
priority list. Or I could probably use `ord(symNumber)` in the `of` statements. 
But it would still look a bit less unclear and more prone to bug if I forgot a 
`+1` somewhere. If pattern matching would end up being a bottleneck 
performancewise I know were to turn now, thank you very much for your advice! 
:D 

Reply via email to