The technique's perfectly valid and is usually known as a 'dispatch table' (if you're looking for a search term).
In reply to Re: Avoiding if/else knots
by Fletch
in thread Avoiding if/else knots
by loris
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |