04:50 ihrd joined
ihrd any body here? 04:57
Tene Hi! 05:00
ihrd hi 05:03
zarah hi ihrd
ihrd i just try to ask on perl6 05:04
but no one answered
rakudo: my $foo = { $^z.say; $^a.say }; $foo("HAI", "HER");
p6eval rakudo 31875: OUTPUT[HER␤HAI␤]
ihrd rakudo: my $foo = { $^a.say; $^z.say }; $foo("HAI", "HER");
p6eval rakudo 31875: OUTPUT[HAI␤HER␤]
ihrd you see, rakudo use lexical sort for params assign there 05:05
dose it`s right behaviour?
Tene Yes, that's the right behavior. 05:06
ihrd 8( )
Tene ?
ihrd do not DWIM for me 05:07
go to read Synopsis
Tene rakudo: my $foo = -> ($z,$a) { $z.say; $a.say }; $foo("HAI", "HER")
p6eval rakudo 31875: OUTPUT[Statement not terminated properly at line 1, near "= -> ($z,$"␤␤current instr.: 'parrot;PGE;Util;die' pc 129 (runtime/parrot/library/PGE/Util.pir:83)␤]
Tene rakudo: my $foo = -> $z,$a { $z.say; $a.say }; $foo("HAI", "HER") 05:08
p6eval rakudo 31875: OUTPUT[Statement not terminated properly at line 1, near "= -> $z,$a"␤␤current instr.: 'parrot;PGE;Util;die' pc 129 (runtime/parrot/library/PGE/Util.pir:83)␤]
Tene Huh. I thought that was implemented.
ihrd I too, but it`s not
Tene rakudo: my $foo = sub ($z,$a) { $z.say; $a.say }; $foo("HAI", "HER") 05:10
p6eval rakudo 31875: OUTPUT[HAI␤HER␤]
Tene You can just do that.
The placeholder params are just a shortcut. 05:11
ihrd yes, but look what in my examples
i your:
Tene What about your examples? Lexical sort if the correct behavior. Lemme find the spec...
ihrd ok, I try to find that. thank you 05:12
Tene perlcabal.org/syn/S06.html#Placeholder_variables
zarah Tene's link is also tinyurl.com/3zcsjl
Tene "The signature is the list of distinct positional placeholder names, sorted in Unicode order, following by the named placeholder names in any order." 05:13
You could also do:
rakudo: my $foo = { $:z.say; $:a.say }; $foo(:z("HAI"), :a("HER")); 05:14
p6eval rakudo 31875: OUTPUT[HAI␤HER␤]
Tene Named placeholders
ihrd thank you 05:16
Tene No problem. Sorry I didn't see your message on #perl6.
ihrd Tene++ 05:19
perl6: "HAI".say 05:33
p6eval elf 22575, pugs, rakudo 31875: OUTPUT[HAI␤]
ihrd rakudo: "HAI"
p6eval rakudo 31875: RESULT["HAI"]
ihrd zarah: help 05:45
zarah ihrd: avaliable commands are boo botsnack clear-messages google help hi karma messages plan replan restart seen slap start stop tell thanks unplan
ihrd zarah: google perl6 05:46
zarah ihrd: en.wikipedia.org/wiki/Perl_6
ihrd karma ihrd 05:47
zarah ihrd has a karma of 1
05:47 ihrd left 07:48 masak joined
masak rakudo: say <OH HAI> 07:48
p6eval rakudo 31876: OUTPUT[OHHAI␤]
masak hm :)
rakudo: say <OH HAI>.join ' ' 07:49
p6eval rakudo 31876: OUTPUT[Statement not terminated properly at line 1, near "' '"␤␤current instr.: 'parrot;PGE;Util;die' pc 129 (runtime/parrot/library/PGE/Util.pir:83)␤]
masak rakudo: say <OH HAI>.join(' ')
p6eval rakudo 31876: OUTPUT[OH HAI␤]
moritz_ rakudo: say <OH HAI>.join: ' ' 08:02
p6eval rakudo 31876: OUTPUT[OH HAI␤]
masak right.
moritz_: how'd the exams go? 08:07
moritz_ I wasn't very good, but I still got a 2.0 (on a scale from 1= very good to 5 = fail) 08:09
masak sounds like a success to me. congratulations.
moritz_ thanks ;) 08:10
one left on Wednesday, then I can learn about spin hall weirdnesses 08:14
masak great 08:15
my next week is full o' deadlines
I look forward to it being over :)
moritz_ deadlines-- 08:16
zarah: karma deadlines?
zarah deadlines? has a karma of 0
moritz_ zarah: karma masak? 08:17
zarah masak? has a karma of 0
moritz_ zarah: karma masak
zarah masak has a karma of 30
moritz_ zarah: karma moritz
zarah moritz has a karma of 0
moritz_ zarah: karma moritz_
zarah moritz_ has a karma of 2
moritz_ zarah: karma ihrd
zarah ihrd has a karma of 1
masak should perhaps strip question marks at the end of karma requests...
moritz_ we need a git bot ;)
masak aye
working on it
it's a question of being able to react on feeds 08:18
as soon as I figure out how to make POE do that, I'll add it to zarah
moritz_ so POE is your new async overlord? ;-) 08:19
masak definitely. my first one, as well. 08:20
moritz_ I've experimented a bit with Coro 08:27
for Perl6::GatherTake 08:28
masak yes, I remember
moritz_ and I used Bot::BasicBot which uses POE, but abstracts the POE stuff away
masak checks out Bot::BasicBot 08:29
hm. abstracting away the POE layer might be a good thing for someone just starting out with a bot, but I feel I want to do the opposite -- learn more about POE so that I can exploit it more 08:30
moritz_ aye
it works for p6eval (which just responds to the channel) and for the logging bot (which only listens) 08:31
bbl
masak aye 08:32
now, if I could only get my hands on a commit-reporting bot that uses POE... 08:33
12:21 masak joined
masak ooh, even .= trans works! 14:27
rakudo: my $a = "aaabbaddacc"; $a .= trans(["a" => ""]); say $a
p6eval rakudo 31883: OUTPUT[bbddcc␤]
masak (git-svn)++ # do not be alarmed by above message 15:33