Are there any disadvantage to using computed goto ? (I'm not aware of any but 
could've missed something)

If not, why not make {. computedGoto.} implied automatically for all switch 
statements over enum (or finite range) variables (see 
[https://nim-lang.org/docs/manual.html#pragmas-computedgoto-pragma](https://nim-lang.org/docs/manual.html#pragmas-computedgoto-pragma))
 and deprecate that pragma which would become a noop. As is the case for 
{.computedGoto.}, switch statement would transform to a computed goto only if 
backend supports it.

Reply via email to