Re: Questions for Survey about Perl

2010-12-31 Thread Chas. Owens
ass the test suite and conforms to the specification IS a Perl 6. Right now the program that passes the most tests and conforms most closely to the specification is Rakudo. -- Chas. Owens wonkden.net The most important skill a programmer can have is the ability to read.

Re: Questions for Survey about Perl

2010-12-29 Thread Chas. Owens
Perl 5, but benefits from Perl 6. -- Chas. Owens wonkden.net The most important skill a programmer can have is the ability to read.

Re: Q: Is there a reason why I can't do this?

2010-12-28 Thread Chas. Owens
rint to a file handle: > $filehandle.print("Hello world\n"); > $filehandle.say("Hello world"); snip [Indirect object][1] notation is still in Perl 6; it just got an unambiguous syntax: print $filehandle: "Hello world"; [1]: http://perlcabal.org/syn/S12.html#line_274 -- Chas. Owens wonkden.net The most important skill a programmer can have is the ability to read.

Re: Q: Is there a reason why I can't do this?

2010-12-27 Thread Chas. Owens
e routines that can have multiple variants that share the same name, selected by arity, types, or some other constraints.][3] [1] : http://perlcabal.org/syn/S03.html#Operator_precedence [2] : http://perlcabal.org/syn/S32/IO.html#multi_print_(*...@list_-->_Bool) [3] : http://perlcabal.org/sy

Re: Q: Is there a reason why I can't do this?

2010-12-27 Thread Chas. Owens
x27;s really the TTIAR thing that makes reading Perl6 so incredibly >> predictable, I think. > > > What is TTIAR? snip It is an error to have Two Terms In A Row. -- Chas. Owens wonkden.net The most important skill a programmer can have is the ability to read.

Re: Q: Is there a reason why I can't do this?

2010-12-27 Thread Chas. Owens
hello $_[0]\n"; }; $lambda->("world"); Perl 6 just has lots of short cuts that make them nicer. Like the ^ twigil: my $lambda = { say "hello $^name" }; $lambda("world"); -- Chas. Owens wonkden.net The most important skill a programmer can have is the ability to read.

Re: Q: Is there a reason why I can't do this?

2010-12-27 Thread Chas. Owens
On Mon, Dec 27, 2010 at 16:00, Chas. Owens wrote: > On Mon, Dec 27, 2010 at 15:55, Daniel Carrera wrote: >> On Mon, Dec 27, 2010 at 9:49 PM, Chas. Owens wrote: >>> >>> The [conditional operator][1] is now spelled test ?? true !! false not >>> test ? tr

Re: Q: Is there a reason why I can't do this?

2010-12-27 Thread Chas. Owens
On Mon, Dec 27, 2010 at 15:55, Daniel Carrera wrote: > On Mon, Dec 27, 2010 at 9:49 PM, Chas. Owens wrote: >> >> The [conditional operator][1] is now spelled test ?? true !! false not >> test ? true : false. > > Thanks! > Now the following code works: > %

Re: Q: Is there a reason why I can't do this?

2010-12-27 Thread Chas. Owens
convenienced. > The [conditional operator][1] is now spelled test ?? true !! false not test ? true : false. [1] : http://perlcabal.org/syn/S03.html#Conditional_operator_precedence -- Chas. Owens wonkden.net The most important skill a programmer can have is the ability to read.

Re: Annoying list user -- again

2009-11-22 Thread Chas. Owens
ed messages about whitelisting to > anyone who posts to it. > > It's up to the list admins, but I for one wouldn't be too disappointed > if this member was booted from the list. If memory serves me, this is > the third time this happens for this particular member on p

Re: hash slice failed ?

2009-07-18 Thread Chas. Owens
ng ? > > regards > marc > It looks like array dereferencers don't interpolate currently in double quotish strings, so you were trying to look up '@a[0]' in the hash. This is likely a bug a Rakudo. I think S02 says that "@a[0]" should be interpolated and that &q

Re: A few questions

2009-07-11 Thread Chas. Owens
e.g., of the form ".‽method") for calling > a method on an object if the object is defined and returning undef if it is > not defined?  I was hoping that ".?method" could do this, but it doesn't > seem to (in Rakudo, at least). Not a clue. > > Thank you in advance, >        Minimiscience -- Chas. Owens wonkden.net The most important skill a programmer can have is the ability to read.

Re: negative index in perl6 array

2009-06-20 Thread Chas. Owens
On Sat, Jun 20, 2009 at 02:49, Aruna Goke wrote: > Chas. Owens wrote: >> >> On Sat, Jun 20, 2009 at 00:58, Aruna Goke wrote: >>> >>> is negative index not allowed in perl6? >>> >>> i tried >>> >>> my @test = (1 .. 20); >>&

Re: negative index in perl6 array

2009-06-19 Thread Chas. Owens
ve_and_differential_subscripts -- Chas. Owens wonkden.net The most important skill a programmer can have is the ability to read.

Re: not wanting something

2009-01-06 Thread Chas. Owens
rved for [0-9] and \p{IsDigit} (or the equivalent Perl 6 construct) be used for matching Unicode digits? -- Chas. Owens wonkden.net The most important skill a programmer can have is the ability to read.

Re: what should be the default extension?

2008-01-07 Thread Chas. Owens
On Jan 7, 2008 1:34 PM, Richard Hainsworth <[EMAIL PROTECTED]> wrote: snip > Definitely a good idea for the implementation / implementors to decide > how to get a resource magically. > > But ... > I have run into situations where I wanted to have more control over > where specific resources were lo

Re: pugs bugs (or features?)

2007-09-07 Thread Chas Owens
On 9/7/07, Wim Vanderbauwhede <[EMAIL PROTECTED]> wrote: > The following program works fine in pugs r17041 (which is the rev of > /usr/bin/pugs on feather): > > my $r=\{say $x+1}; > my $x=2; > $r(); > > With r17041, this gives 3; > However, on the latest pugs (r17615 or later), it gives an error: >