Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Perl6's future

Name: Anonymous 2011-02-16 12:29

Hai gais

What do you think will happen to perl6 ???

1) Will have the same fate as Haskell...
2) Python3's snake will eat the Perl6 butterfly
3) Only ParrotVM will be succesfull
4) Perl6 will become the new Java
5) faggot

Name: Anonymous 2011-02-17 7:23


1: my @g = 0, 0;
2: print "0.0";
3: loop {
4:   my %set;
5:   ++%set{@g[$_] +^ @g[* - $_ - 2]} for 0 .. @g/2 - 1;
6:   my $mex = first { !%set.exists($_) }, 0..*;
7:   print $mex;
8:   push @g, $mex
9: }


I'm just joining this thread.... I've ordered the example in >>10... and i think it's still a little complicated. For example, what happens in line 5 ? I've read the answer about +^ but the @g[* - $_ - 2]} got me. How can you write it in a more C-like way?
Line 6 is too a mystery for me... Is the "first element that ???? in the range 0 .. Infinity" ?

Please perl6 fans, enlighten me.

Cool to see interesting threads like this in /prog/ once in a while

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List