Re: opposite of when (fewer stupid errors)

2009-01-07 Thread Gaal Yahas
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

Re: qx{} or backtick?

2008-06-19 Thread Gaal Yahas
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

Re: qx{} or backtick?

2008-06-19 Thread Gaal Yahas
cro qx { 'qq:x ' } # equivalent to P5's qx// -- Gaal Yahas <[EMAIL PROTECTED]> http://gaal.livejournal.com/

Re: perl6-ish idiom for code and tests in one file

2007-01-05 Thread Gaal Yahas
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/

Re: 99 problems in Perl6: problem 28

2007-01-02 Thread Gaal Yahas
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/

Re: Strange error message with anon subroutine

2006-12-13 Thread Gaal Yahas
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/

Re: Introspection and list question

2006-12-13 Thread Gaal Yahas
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/

Re: Error running Pugs tests

2006-12-12 Thread Gaal Yahas
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/

Re: Writing modules

2006-08-29 Thread Gaal Yahas
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/

Re: Conditionally included list elements

2006-06-18 Thread Gaal Yahas
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/