Charles said:
I guess the question would be whether this is useful enough information
to warrant a semantic change in "arity" representation.
It can be useful in some cases and it is *certainly* cleaner than the
wondrous hack that is a negative arity, but I'm never very fond of
backwards compatibility breakage. I'd be more in favor of introducing a
new method (e.g. 'arityrange') that would return a Range object. (please
pretty please mr. core developpers)
IMHO, Range objects are underused. MatchData#offset would be so much
nicer if it returned (a...b) instead of [a,b]
just my 2=A5