On Sat, Aug 04, 2007 at 12:56:06PM -0700, Larry Wall wrote: > for '❶' .. '❿' { .say } > > But it's not clear what to do if you try to increment ❿ though. > Probably just return a failure.
Assuming that '❶' .. '❿' is a range similar to '0'..'9', then consistency with the other ranges would seem to indicate that incrementing 'a❿' produces 'b❶', and incrementing '❿' on its own would produce '❶❶'. (Unless, of course, '❿' is treated as a "number in any common representation", in which case incrementing it produces 11.) I'm not saying that anything involving the dingbats makes good sense -- just that this is what I would tend to expect to happen based on how the other ranges autoincrement. Feel free to insert pithy quotes about consistency and hobgoblins here. :-) And so we don't get bogged down in (relatively unimportant) details, I'll refrain from shouting "look at the ugly corner cases!" for now and leave it to others to decide how/when to push this. The changes to S03 and clarifications give me enough to proceed for now -- namely: Strings that look like numbers or that don't end in \w+ are numified and then incremented, whereas strings ending with \w+ are incremented according to individual character ranges. The exact set of ranges are still under discussion, but the ranges A-Z, a-z, and 0-9 have the "expected" semantics. Others can continue on the discussion if wanted, but as an implementor I'm happy with this outcome for now. :-) Thanks! Pm