Perl 6 - the future is here, just unevenly distributed

IRC log for #plparrot, 2010-07-31

| Channels | #plparrot index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:38 dukeleto cxreg: i think that you can't return values from a pointy block
00:40 dukeleto cxreg: or i could be totally wrong about that
00:40 dukeleto thankfully, i think I am wrong
00:40 dukeleto > my $f = sub (@_) { -> $a, $b { say "a=$a, b=$b"; return $a*$b }(|@_) }; my @a = (2,3); my $x = $f(@a); say $x
00:40 dukeleto a=2, b=3
00:40 dukeleto 6
00:40 dukeleto that gives me hope
02:33 davidfetter joined #plparrot
03:38 dukeleto joined #plparrot
15:57 * davidfetter waves to dukeleto from milwaukee
15:58 davidfetter (the other one)
17:21 justatheory joined #plparrot
18:21 cxreg dukeleto: it's just a closure, and i think that's working just like perl 5 would:
18:21 cxreg sub foo { sub { ... }->(@_) }
23:43 justatheory joined #plparrot

| Channels | #plparrot index | Today | | Search | Google Search | Plain-Text | summary