in reply to Re: Slice Madness
in thread Slice Madness

Yes, it's fixed in Perl 6. In fact, it's already fixed in Pugs:

    pugs> say ~(1..10)
    1 2 3 4 5 6 7 8 9 10

But your solution is bad Huffman coding. Range objects are much more useful than flipflops, and therefore should get the .. operator.

Replies are listed 'Best First'.
Re^3: Slice Madness
by Anonymous Monk on Nov 09, 2005 at 23:48 UTC
    Yes, it's fixed in Perl 6. In fact, it's already fixed in Pugs:

    Yay! Three cheers for fixing stuff! :-)

    But your solution is bad Huffman coding. Range objects are much more useful than flipflops, and therefore should get the .. operator.

    Either way works for me; I was trying to be charitable to the opposing position. :-) I'll always prefer the solution that lets me keep my favourite syntax (i.e. the range operator), but I didn't know if there were a ton of hidden ex-sed and awk lurkers out there ready to gripe at me if I suggested the range operator be used instead. :-)
    --
    Ytrew