Why limit the magic to strings that match the pattern.
What would be the result of incrementing ')(~'?
When is it ever better to return '1' than the incremented string?
IMO, never.
String increment should fail loudly when the conditions for it are not met.
In reply to Re: String increment - reasoning
by BrowserUk
in thread String increment - reasoning
by throop
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |