I think of modifying the table as a kind of nifty feature that is likely to be little-used. Why do you see it as important?
The default case does need to be at the end of the list. I will make that explicit in the docs.
You're probably right about treating ranges as unordered. That's actually a fix where I get to remove code. I had thought it would be a convenience. I also toyed with the idea of a reversed pair signifying "not between". But I don't think there's any value in that, either.
The perplexing paragraph can probably be removed. It is in anticipation of people considering it a misfeature not to handle arrayrefs as arrayrefs. It merely points out that instead of
you could actually do[ $arrayref ] => sub { something }, # if it handled arrayrefs as arra +yrefs
and$arrayref => sub { something } , # treat $arrayref as a list of te +sts
I greatly appreciate your comments.# instead of [ $arrayref, 'foo' ] => sub { something }, # do this $arrayref => sub { Case::resume() }, [ 'foo' ] => sub { something },
In reply to Re^2: RFC: Case package documentation
by Roy Johnson
in thread RFC: Case package documentation
by Roy Johnson
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |