S29 doubts that need clarification

2008-01-22 Thread Cosimo Streppone
Hi all, I'm in the process of refactoring existing pugs test suite, for example t/builtins, into t/spec/S29-. Questions: - @array.uniq is not mentioned in S29. Should it be in S29/List? or S29/Array? - cis(), polar() and friends belong to S29/Num while they should probably belong to

How to write this properly in Perl 6?

2009-05-27 Thread Cosimo Streppone
Hi cool people, the Amazing Perl 6 thread was amazing. It reminded me how Perl 6 looks interesting and fun. So... how can I write properly, for some meaning of properly, the Perl 6 equivalent of this: http://search.cpan.org/dist/Games-BonDigi/ ? ( if it's not clear, you can run the

Re: How to write this properly in Perl 6?

2009-05-28 Thread Cosimo Streppone
In data 28 mai 2009 alle ore 00:13:19, Mark J. Reed markjr...@gmail.com ha scritto: You can write a sub to return the next step: sub bondigi { state $n=1; return (Bon Digi Bon Digi, Bon xx $n, Digi xx $n++); } Nahh. That's too easy... It's not fun :-) but I think an idiomatic Perl 6

Re: How to write this properly in Perl 6?

2009-05-28 Thread Cosimo Streppone
In data 27 mai 2009 alle ore 23:46:40, John M. Dlugosz 2nb81l...@sneakemail.com ha scritto: Anything in the existing implementation that's hostile to Perl 6? Just port it over by lightly editing the text or using a p5 module importer. Yes, right, but that wouldn't use Perl 6 features. To

IO::Socket::INET.open() broken? RT#83866

2011-03-06 Thread Cosimo Streppone
Hi all, I just downloaded and compiled rakudo/parrot, as in: ~/src/perl6/perl6-cache-memcached$ perl6 -v This is Rakudo Perl 6, version 2011.02-43-gbfdd78d built on parrot 3.1.0 RELEASE_3_1_0-700-gdb77547 Copyright 2008-2011, The Perl Foundation and I discovered that my LWP::Simple