Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

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

9 views
Skip to first unread message

GitHub

unread,
Aug 9, 2015, 5:15:03 PM8/9/15
to perl6-l...@perl.org
Branch: refs/heads/master
Home: https://github.com/perl6/specs
Commit: 614b6f36e1cae4c787e378bc6ab2afa1f86de1f0
https://github.com/perl6/specs/commit/614b6f36e1cae4c787e378bc6ab2afa1f86de1f0
Author: TimToady <la...@wall.org>
Date: 2015-08-08 (Sat, 08 Aug 2015)

Changed paths:
M S04-control.pod

Log Message:
-----------
doc with/without


yary

unread,
Aug 10, 2015, 11:45:02 AM8/10/15
to Perl6
"with", "without" look awesome.

-y

Richard Hainsworth

unread,
Aug 11, 2015, 5:45:03 PM8/11/15
to perl6-l...@perl.org
Is there an error in the cascade? Shouldn't the indices be 'a', 'b', 'c'; not 'a','a','a' ?

Elizabeth Mattijsen

unread,
Aug 11, 2015, 6:15:02 PM8/11/15
to perl6-l...@perl.org
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
0 new messages