cant think of an immediate opposite to 'when', but how about
> although, yet, except, howbeit
>
> Perhaps (less elegant): when not, elided to 'whent'
>
> English doesnt seem to have a word that fits the opposite of
> 'when'
> In other words something
On Thu, Jun 19, 2008 at 9:01 AM, Gaal Yahas <[EMAIL PROTECTED]> wrote:
> On Thu, Jun 19, 2008 at 7:45 AM, Gabor Szabo <[EMAIL PROTECTED]> wrote:
>> What replaces backtick or qx{} ?
>
> q:x{}, alternatively spelled qqx{}. From S02:
qq:x, that is of course.
--
Gaal Yah
cro qx { 'qq:x ' } # equivalent to P5's qx//
--
Gaal Yahas <[EMAIL PROTECTED]>
http://gaal.livejournal.com/
macro (possibly a
> standard subroutine, I'm not sure) like
>
> testing {
> ok foo;
> }
>
> would it make sense or I'm just crazy?
I like the approach.
--
Gaal Yahas <[EMAIL PROTECTED]>
http://gaal.livejournal.com/
svn)
You have one now :)
(The darcs mirror used to be one-way; I don't know if this has changed.)
> By the way, any comments on the code? :)
Come over to #perl6 on freenode.
--
Gaal Yahas <[EMAIL PROTECTED]>
http://gaal.livejournal.com/
a bug.
Perl 6 differentiates between a bare Code and Routine objects. Replacing
"->" with "sub" should get you what you want.
--
Gaal Yahas <[EMAIL PROTECTED]>
http://gaal.livejournal.com/
ck, I think
(Pugs does not yet implement gather/take):
sub flatten1 (@list) {
gather for @list {
take $_;
}
}
sub flatten2 (@list) {
gather for @list {
take $_.does("List") ?? flatten2 $_ !! $_;
}
}
--
Gaal Yahas <[EMAIL PROTECTED]>
http://gaal.livejournal.com/
l6/Test.pm line 34, column 21
> t/general/basic.t line 1, column 1)
You have an old version of Test.pm (and likely, other modules too) from
an earlier 'make install'. Better wipe out your /usr/local/lib/perl6
and any other traces.
--
Gaal Yahas <[EMAIL PROTECTED]>
http://gaal.livejournal.com/
ut as far as I can tell they are meant to be built from
> within the Pugs source tree, and since my code clearly won't be living there
> I'd rather not write it there either.
Then at least read there. Good luck :-)
--
Gaal Yahas <[EMAIL PROTECTED]>
http://gaal.livejournal.com/
ion they
> return if the condition turns out to be false. Wouldn’t your
> solution evaluate it unconditionally?
That can be solved with an explicit thunk:
sub infix: ($x, $cond) { $cond ?? ($x(),) !! () }; say 1, 2, {3} pv 1, 4
Or maybe 'is lazy' on $x?
--
Gaal Yahas <[EMAIL PROTECTED]>
http://gaal.livejournal.com/
10 matches
Mail list logo