Re: [perl6/specs] 614b6f: doc with/without

[email protected] (Elizabeth Mattijsen)
Newsgroups perl.perl6.language
Message-ID <[email protected]>
If this is about:

These may be cascaded:

    with   $s.index("a") { "Found a at $_" }
    orwith $s.index("b") { "Found b at $_" }
    orwith $s.index("c") { "Found c at $_" }
    else                 { "Didn't find a, b or c” }

then the code is correct.  What would be the point of searching for “a” again and again if it wasn’t found the first time?



Liz

> On 11 Aug 2015, at 06:08, Richard Hainsworth <[email protected]> wrote:
> 
> Is there an error in the cascade? Shouldn't the indices be 'a', 'b', 'c'; not 'a','a','a' ?
> 
> On 08/10/2015 11:26 PM, yary wrote:
>> "with", "without" look awesome.
>> 
>> -y
>> 
>> On Sat, Aug 8, 2015 at 2:38 PM, GitHub <[email protected]> wrote:
>>   Branch: refs/heads/master
>>   Home:   https://github.com/perl6/specs
>>   Commit: 614b6f36e1cae4c787e378bc6ab2afa1f86de1f0
>>       https://github.com/perl6/specs/commit/614b6f36e1cae4c787e378bc6ab2afa1f86de1f0
>>   Author: TimToady <[email protected]>
>>   Date:   2015-08-08 (Sat, 08 Aug 2015)
>> 
>>   Changed paths:
>>     M S04-control.pod
>> 
>>   Log Message:
>>   -----------
>>   doc with/without
>> 
>> 
>> 
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.