> Did you miss the first reply (by @ElegantBeef), where he shows you that you 
> basically "invented" what is already available, and that is case statement?

Did you miss that it `isn't` a case statement, and that @ElegantBeef's code is 
completely different?

However, it does invent what is already available: if/elif/else. There's no 
reason to put something idiosyncratic like this into sugar.nim. If the OP likes 
this syntax, then they can put it in their own sugary module and if they think 
the world wants it they can add it to the package directory.

Reply via email to