On 5/29/07, Larry Wall <[EMAIL PROTECTED]> wrote:
The main rationale for going with null return is that the biggest use of
replication has generally been something like:

    say $foo, ' ' x (20 - $foo.width), $bar

and it would be counterproductive to degrade to "negative" spaces in
such a case.  (This is also the rationale for not returning failure
on negative counts.)

OK.  That makes sense.  Thanks.

And generally, I think

    @list xx -1

is less readable than


so I don't feel inclined to include it as another Way To Do It.

I wholeheartedly agree on the readability issue.  Nor was I setting
out to add a new Way To Do anything; it's just that my automatic
expectation for what would happen (which I'm not trying to defend as
particularly logical) was being violated, and P6 hasn't done that too
often.  So I prodded to see what was going on in @larry.brain.  Your
explanation is all I needed to shush the little grumbles in my head.
Thanks again!


Reply via email to