What about a template case?
template
switch (number) { template: before: // do something before after: // do something after case 1: // ... template case 2: // ... template case 3: // ... case 4: // ... default: // ... }
template could be applied to only a particular subset of cases, and the template definition could be extended to do exception handling, etc.
We're a place where coders share, stay up-to-date and grow their careers.
What about a
templatecase?templatecould be applied to only a particular subset of cases, and thetemplatedefinition could be extended to do exception handling, etc.