»ö« Welcome to Perl 6! | perl6.org/ | evalbot usage: 'p6: say 3;' or rakudo:, or /msg camelia p6: ... | irclog: irc.perl6.org or colabti.org/irclogger/irclogger_logs/perl6 | UTF-8 is our friend! Set by moritz on 22 December 2015. |
|||
00:00
epony left
00:02
reportable6 left,
reportable6 joined,
epony joined
00:08
xi- left
00:17
lizmat joined
00:20
dct_ left,
Kaiepi left
00:21
Kaiepi joined
00:25
lichtkind left
00:27
xi- joined
00:35
captain-adequate left
00:39
Kaiepi left,
aindilis left,
Kaiepi joined
00:43
yoleaux joined,
ChanServ sets mode: +v yoleaux
00:44
pierre joined
00:48
markong left
00:49
pierre left
00:58
aborazmeh joined,
aborazmeh left,
aborazmeh joined
01:19
sharksoft joined
|
|||
Geth | rakudo.org: ba9f762ba5 | (Zoffix Znet)++ | 22 files Add stubs of all pages / Restyle |
01:20 | |
01:24
sharksoft left
01:32
Zoffix joined
|
|||
Zoffix | I wonder, what'd be involved in making El_Che's packages "official"? | 01:33 | |
OTOH, I guess that won't help the fact that Rakudo Star ain't got no deb | 01:34 | ||
This'd be my ideal download page: i.imgur.com/U7WbtYt.png | 01:35 | ||
(well, with "other options" link below it) | |||
i.imgur.com/cUnUNbW.png | 01:39 | ||
JS-detected best option. No wall of text. | 01:40 | ||
02:04
wamba joined
02:05
FROGGS_ joined
02:09
FROGGS left
02:14
AlexDaniel left
|
|||
Geth | rakudo.org: 46d93f039a | (Zoffix Znet)++ | assets/sass/main.scss Add helper for writing "Perl 6" The actual NBSP is 150% the width the regular space on my box and looks gross. |
02:19 | |
02:19
Zoffix left
02:27
statisfiable6 joined
02:28
coverable6 joined,
aborazmeh left
02:33
mniip left
02:36
mniip joined
02:40
cdg joined
02:46
cdg left
02:47
ilbot3 left
02:48
aindilis joined
02:56
ilbot3 joined,
ChanServ sets mode: +v ilbot3
|
|||
Geth | rakudo.org: e9059b9921 | (Zoffix Znet)++ | 3 files More nbsp changes |
03:17 | |
rakudo.org: 9a4423bd36 | (Zoffix Znet)++ | assets/sass/main.scss Link/footer style tweaks |
|||
rakudo.org: a1df4d4e18 | (Zoffix Znet)++ | 2 files Add documentation page |
03:18 | ||
03:24
stmuk_ joined
03:26
stmuk left
|
|||
Geth | rakudo.org: 90affee141 | (Zoffix Znet)++ | 6 files Implement platform detection To offer platform-specific download links. |
03:52 | |
04:04
xtreak joined
04:14
pierre_ joined
04:41
xtreak left
04:57
xtreak joined
|
|||
Geth | perl6.org: eb6ec02745 | (Zoffix Znet)++ | 2 files Fix navbar alignment |
05:00 | |
05:05
khw left
05:47
cdg joined
05:49
bloatable6 joined,
troys left
|
|||
Geth | rakudo.org: 35d31a40b8 | (Zoffix Znet)++ | 2 files Implement "Reporting Bugs" page |
05:51 | |
05:52
cdg left
|
|||
Geth | perl6.org: c4fd88fb98 | (Zoffix Znet)++ (committed using GitHub Web editor) | source/community/index.html Anchor "Getting Involved" section for links |
06:03 | |
perl6.org: da43f15cbd | (Zoffix Znet)++ (committed using GitHub Web editor) | source/community/irc.html Update info on Geth/dalek |
06:07 | ||
06:08
cdg joined
06:13
cdg left
06:20
rindolf joined
06:33
Meows joined
06:34
Teferis joined
|
|||
Meows | We need to setup one of those messages that get printed when users join the channel. Something like "Type your question and if anyone's around, they'll answer". We link to webchat ( docs.perl6.org/webchat.html ) from a ton of places, but if you've never used IRC, it's not clear when you can start talking (you get the server's Welcome message first and then nearly-empty channel page opens). | 06:35 | |
06:35
Meows left,
Teferis left
06:36
Teferisimp joined
|
|||
Geth | rakudo.org: a56cd9e64c | (Zoffix Znet)++ | templates/people.html.ep Implement "People" page |
06:43 | |
rakudo.org: 9259ce2dad | (Zoffix Znet)++ | 3 files Restyle primary button on pages |
06:46 | ||
rakudo.org: e0f4a3b981 | (Zoffix Znet)++ | 2 files Consistify titles styles |
06:49 | ||
06:54
pharv joined,
pharv left,
xtreak left,
pharv joined,
Zoffix joined
06:55
xtreak joined
|
|||
Zoffix | .tell stmuk_the very bottom of this page rakudo.org/downloads/star/ has org.perl6.rakudo-star.2017.10-x86_64.AppImage file. Is that meant to be there or should it be deleted? | 06:55 | |
yoleaux | Zoffix: I'll pass your message to stmuk_the. | ||
Zoffix | stupid robot | ||
.tell stmuk_ the very bottom of this page rakudo.org/downloads/star/ has org.perl6.rakudo-star.2017.10-x86_64.AppImage file. Is that meant to be there or should it be deleted? | |||
yoleaux | Zoffix: I'll pass your message to stmuk_. | ||
07:02
rindolf left
07:04
rindolf joined
07:06
xtreak_ joined
07:09
xtreak left
07:28
Sgeo_ joined
07:30
Sgeo__ left
|
|||
Geth | rakudo.org: cc1dbf1d76 | (Zoffix Znet)++ | 5 files Style tweaks on homepage |
07:33 | |
07:53
Teferisimp left
08:00
domidumont joined
08:07
domidumont left
08:08
domidumont joined
08:13
parv joined
08:17
rindolf left
08:19
rindolf joined
08:27
atta left
08:29
cdg joined
|
|||
stmuk_ | Zoffix: why would it not want to be there? | 08:30 | |
yoleaux | 06:55Z <Zoffix> stmuk_: the very bottom of this page rakudo.org/downloads/star/ has org.perl6.rakudo-star.2017.10-x86_64.AppImage file. Is that meant to be there or should it be deleted? | ||
stmuk_ | Zoffix: which reminds me that page shouldn't show preChristmas releases | 08:33 | |
08:34
cdg left
|
|||
stmuk_ | originally they had been moved into an "archive" sub-directory | 08:34 | |
08:35
atta joined
|
|||
stmuk_ | I guess its probably not worth fixing anyway if you are moving rakudo.org | 08:36 | |
maybe just use rakudo.perl6.org/downloads/star/ | |||
one download place is easier and less error prone | |||
08:49
pmurias joined
08:50
pmurias left
08:51
pmurias joined
08:53
darutoko joined
09:07
pharv left
|
|||
Zoffix | stmuk_: because it has a weird filename that doesn't follow any of the other filenames | 09:08 | |
stmuk_ | its an appimage | 09:09 | |
I was hoping to prompt it more and get feedback but ran out of tuits | |||
^ promote | 09:10 | ||
you can basically execute perl6 REPL but the whole appimage thing didn't seem to fit well with a programming language using modules and scripts | |||
09:10
sena_kun joined
|
|||
stmuk_ | appimage-type systems seem targeted at bundling simple apps rather than SDK (with p6doc, module use etc) | 09:11 | |
09:12
Zoffix left
|
|||
stmuk_ | anyway the only reason that page exists was as a legacy http version of rakudo.perl6.org/downloads/star/ | 09:12 | |
maybe it should just redirect there | 09:13 | ||
09:18
xtreak_ left
|
|||
Geth | perl6.org: b4f5a5e44f | (Steve Mynott)++ | source/downloads/index.html big endian errata |
09:40 | |
09:43
kaare__ left
09:45
kaare__ joined
09:53
ufobat joined
|
|||
Geth | doc: 5955b95c41 | (JJ Merelo)++ | doc/Type/Rational.pod6 Documenting NuT and DeT Which are actually placeholders more than real "things", but anyway worth a small explanation and example. Closes #176 |
09:54 | |
synopsebot | Link: doc.perl6.org/type/Rational | ||
09:54
kurahaupo joined
|
|||
stmuk_ | hmmm you can execute a shell inside a flatpak .. maybe that would work | 09:57 | |
10:07
Kaiepi left
10:08
mniip left
10:12
greppable6 left,
mniip joined
|
|||
nine is wondering who he may meet at the upcoming GPW (and hackathon) | 10:19 | ||
yoleaux | 4 Mar 2018 17:13Z <AlexDaniel> nine: plz github.com/niner/Inline-Perl5/issues/107 :) | ||
10:20
Kaiepi joined
10:35
releasable6 left,
releasable6 joined,
ChanServ sets mode: +v releasable6
10:40
kurahaupo_ joined
10:42
kurahaupo left
11:05
kurahaupo_ is now known as kurahaupo
11:06
lichtkind joined
|
|||
lichtkind | can someone please me with zef i cant get anything installed due: No such method 'IO' for invocant of type 'Any' | 11:08 | |
no matter what i want to install | |||
El_Che | please you with zef? :) | 11:12 | |
github.com/ugexe/zef/issues/175 | |||
If I read it right you may have to bump your rakudo version | 11:13 | ||
El_Che bbl | |||
11:17
sena_kun left
|
|||
lichtkind | El_Che, thanks but i pulled from git yesterday but i wondered why i still ahve 2017 version instead of that | 11:20 | |
was there branch change? | |||
11:20
bbkr joined
|
|||
lichtkind | i found it strange even pulled now i get 2017.10 | 11:20 | |
11:21
AlexDaniel joined
11:22
kurahaupo left
11:23
kurahaupo joined
|
|||
MasterDuke | lichtkind: around then is when rakudo switched from nom to master as the default branch | 11:31 | |
lichtkind | thanks | 11:36 | |
bbkr | r: sub foo { return { 1=>2 }, 3 }; my (%h, $s) = foo(); # what happens here? why returned list causes hash to be flattened? | 11:51 | |
camelia | Odd number of elements found where hash initializer expected: Found 3 (implicit) elements: Last element seen: 3 in block <unit> at <tmp> line 1 |
||
Odd number of elements found where hash initializer expected: Found 3 (implicit) elements: Last element seen: 3 in block <unit> at <tmp> line 1 |
|||
12:11
eliasr joined
12:16
fatguy joined
12:17
markong joined
|
|||
jnthn | bbkr: A hash or array in a list assignment will swallow up everything. Use destructuring instead | 12:21 | |
r: sub foo { return { 1=>2 }, 3 }; my (%h, $s) =: foo(); | |||
camelia | 5===SORRY!5=== Error while compiling <tmp> Malformed initializer at <tmp>:1 ------> 3o { return { 1=>2 }, 3 }; my (%h, $s) =:7⏏5 foo(); expecting any of: colon pair |
||
5===SORRY!5=== Error while compiling <tmp> Malformed initializer at <tmp>:1 ------> 3o { return { 1=>2 }, 3 }; my (%h, $s) =:7⏏5 foo(); expecting any of: colon pair |
|||
jnthn | r: sub foo { return { 1=>2 }, 3 }; my (%h, $s) := foo(); dd %h; dd $s | ||
camelia | Hash % = {"1" => 2} 3 |
||
jnthn | nine: I'll be at GPW on Thu/Fri and most of the Sat hackathon | 12:23 | |
nine | jnthn: that....sounds like a good reason to go to Köln even if there's the toolchain summit just 2 weeks after :) | 12:27 | |
jnthn is going for a week's vacation after GPW | 12:29 | ||
Thought my vacation conflicted with GPW, then realized GPW is immediately before it, and so I could tack it on nicely to the start of the trip :) | 12:30 | ||
12:30
dct_ joined
|
|||
jnthn | Note it's...not exactly in Köln :) | 12:32 | |
Though at least coming from Prague it's on my side of Köln :) | 12:33 | ||
bartolin plans to go to the GPW, too. | |||
12:36
konsolebox left
|
|||
nine | Oh boy, that's really not that easy to reach | 12:36 | |
jnthn | Sure doesn't help that there's a replacement bus service for the train that weekend, depending on which direction you're coming from | 12:38 | |
nine | Looks like a ~9 hours trip is the best I could get | 12:43 | |
bbkr | jnthn: thanks for destructuring tip | 12:44 | |
jnthn | Yeah, feels about right | ||
We're going to break the trip in Berlin for an evening | |||
12:45
cdg joined
|
|||
jnthn | Gotta change there anyway, and the Hbf is a short walk from various interesting things to see | 12:45 | |
12:49
cdg left
|
|||
nine | m: multi foo() { say "none" }; multi foo(|args) { say "many" }; foo(a => 1) | 12:50 | |
camelia | Unexpected named argument 'a' passed in sub foo at <tmp> line 1 in block <unit> at <tmp> line 1 |
||
nine | jnthn: is this ^^^ to be expected? | 12:51 | |
12:51
konsolebox joined
|
|||
timotimo | yes, named parameters don't factor into multi-dispatch | 12:52 | |
jnthn | Well, multi dispatch doesn't consider named parameters, though anything that requires one will be considered a bit narrower. But |args ain't requiring one | ||
ArrayList<Perl6PsiElement> decls = new ArrayList<>();m: multi foo() { say "none" }; multi foo(:$a!) { say "many" }; foo(a => 1) | 12:53 | ||
lol wat | |||
m: multi foo() { say "none" }; multi foo(:$a!) { say "many" }; foo(a => 1) | |||
camelia | many | ||
jnthn | copy paste fail | 12:54 | |
nine | So I'm gonna lose the huge speedups this gave me :/ github.com/niner/Inline-Perl5/comm...6682b7da8f | ||
jnthn | But you're adding methods there, which all have an implcit *%_ | ||
nine | ...leading to github.com/niner/Inline-Perl5/issues/107 | 12:55 | |
Zoffix++'s idea to use subs instead of methods runs into the multi dispatch issue then | |||
12:56
konsolebox left,
aborazmeh joined,
aborazmeh left,
aborazmeh joined
12:58
dct_ left
|
|||
nine | I wonder if I could have the Capture candidate add new multi candidates for precisely the arity + named args given. | 13:04 | |
13:06
AlexDaniel left,
ggherdov joined
|
|||
bbkr | is there a way to make destructuring work with class attributes without intermediate values? Like so: sub foo { return %{ 1=>2 }, 3 }; class A { has %.h; has $.s; }; my $a = A.new; ($a.h, $a.s) := foo(); | 13:33 | |
Geth | perl6.org: 6eb038ecd8 | (Steve Mynott)++ | source/downloads/others.html Import new page doc'ing a list of packaged third party binary and source distributions |
||
perl6.org: 0cf5b33d0a | (Steve Mynott)++ | source/downloads/index.html link new download others page from main download |
|||
perl6.org: 6e924e855b | (Steve Mynott)++ | source/downloads/others.html typos |
|||
stmuk_ | odd most free UNIX clones seem to have a rakudo [star] port/package with the noteable exception of FreeBSD | 13:46 | |
13:46
stmuk_ is now known as stmuk
13:51
aborazmeh left
13:57
cdg joined
14:02
parv left
14:20
kaare_ joined,
kaare__ left
14:23
tt left
|
|||
xi- | stmuk: it compiles great on freebsd, there's just no port for it | 14:24 | |
14:24
tt joined
|
|||
xi- | but you can just download the tarball and compile it normally | 14:24 | |
stmuk | yes I do that quite frequently :) | ||
I think perl6.org page generation is "stuck" I'm not seeing changes from 5 hrs ago live | 14:25 | ||
14:29
Sgeo__ joined
14:31
Sgeo_ left
|
|||
stmuk | moritz: ^^^ | 14:49 | |
permission errors visible in www.p6c.org:/home/perl6.org/update.log looks like /home/perl6.org/perl6.org/source/ has some root owned files which should be owned by perl6.org user | 15:07 | ||
15:08
ufobat left
|
|||
lichtkind | MasterDuke++ | 15:11 | |
15:13
esh left
15:14
kalkin- joined
|
|||
kalkin- | hi | 15:14 | |
lichtkind | cheers kalkin | ||
15:15
khisanth_ left
|
|||
kalkin- | My Testfile consists of multiple subtest each containing the lines: my $result = parse(ANOTHER_FIXTURE); skip-rest "Parsing-failed" unless $result; | 15:19 | |
I want to write a macro which I would insert this two lines of code | |||
15:19
esh joined
|
|||
timotimo | why not just loop over your fixtures? | 15:20 | |
kalkin- | timotimo: after this two lines there're subtest specific tests | 15:21 | |
timotimo | ah, that changes things | ||
in that case i'd have a list of blocks that get called if the corresponding fixture test succeeded | 15:22 | ||
my @fulltests = $fixture_one => -> $/ { is $<foo>, "hi", "some test }, $fixture_two => -> $/ { ... }; | |||
kalkin- | timotimo: nice idea, but how do I inject the result of parse(ANOUTHER_FIXTURE) in to the block? | 15:23 | |
timotimo | you just $the_block($/) | 15:24 | |
kalkin- | ahh, ok. will try it, thanks | ||
timotimo | or $the_block($arse-result) or whatever you call it | ||
hope it works out :) | |||
15:25
pierre_ left,
pierre_ joined
15:27
khisanth_ joined
15:29
pierre_ left
|
|||
mst | timotimo: Error: undefined buttock at line 1 | 15:31 | |
timotimo | oh lord | 15:33 | |
jdv79 | what even is that? | 15:39 | |
APic | Lord? | ||
15:39
domidumont left
|
|||
jdv79 | an undefined buttock | 15:40 | |
mst | it's what happens when you forget to type smiley $arse-result | ||
15:40
domidumont joined
|
|||
jdv79 | lords are some english class thing | 15:40 | |
15:41
fatguy left
|
|||
jdv79 | oh. ok. | 15:41 | |
15:42
FROGGS_ is now known as FROGGS
|
|||
lichtkind | cheers FROGGS | 15:43 | |
FROGGS | hi lichtkind | ||
lichtkind | <deep voice> I'm back | ||
FROGGS | :D | ||
jdv79 | hey FROGGS | 15:44 | |
kalkin- | timotimo: Worked out flawless, than you | ||
FROGGS | o/ | ||
stmuk | I'd assume lord is an expletive version of YHWH and not either a peer or a singer from NZ | 15:45 | |
lichtkind | is there a p6 style guide | ||
FROGGS, see you in Gummersbach? | 15:46 | ||
APic | \o | ||
stmuk | github.com/perl6/doc/blob/master/STYLEGUIDE.md | 15:47 | |
lichtkind | thanks stmuk | ||
FROGGS | lichtkind: no, I won't be able to be there | ||
lichtkind | good so you cant correct me in my talk :) | ||
FROGGS | hehe | 15:48 | |
right | |||
lichtkind | FROGGS, reason im back to prepare a talk on p module writing | ||
FROGGS | nice | 15:49 | |
lichtkind | yes so i polish the only module i ever wrote for p6 | 15:50 | |
FROGGS, do you do core stuff? | 15:51 | ||
FROGGS | not at the moment | ||
15:52
stmuk_ joined
15:54
stmuk left
|
|||
mst | FROGGS: hey, I rehomed sdl.perl.org and the git repos, can you check everything's still happy please | 15:56 | |
15:56
zakharyas joined
15:57
Pilu left
15:58
stmuk_ is now known as stmuk,
skids joined
16:00
cdg left
|
|||
FROGGS | mst: looks good to me :o) | 16:01 | |
thank you | |||
16:04
cdg_ joined
16:06
cdg_ left
|
|||
jdv79 | lichtkind: got a draft? | 16:08 | |
lichtkind | jdv79, no just thinking about | 16:10 | |
jdv79 | ah, cool | 16:13 | |
16:14
domidumont left
16:15
domidumont joined
16:20
domidumont left
16:21
domidumont joined
16:24
eryst joined
16:30
AlexDaniel joined
16:43
zakharyas left
|
|||
AlexDaniel | lichtkind: fwiw that's not exactly a p6 styleguide | 16:49 | |
lichtkind: it's just what we use for docs | |||
lichtkind | AlexDaniel, yes I read it | 16:50 | |
AlexDaniel | lichtkind: so IMO the right answer is that we don't have a styleguide yet, feel free to start one :) Maybe parts of that doc styleguide can be used to start it | 16:51 | |
lichtkind: also, you might be interested in this page: docs.perl6.org/language/traps | |||
lichtkind | AlexDaniel, that but i have to gain some experience first | 16:56 | |
cfa | tangentially related to style, | 16:57 | |
DrForr: the readme for github.com/drforr/perl6-Perl6-Tidy documents zef installation, but it looks like Perl6::Tidy isn't registered in the ecosyste | |||
+m | |||
(also, good morning all) | 16:58 | ||
lichtkind | :) | 16:59 | |
timotimo | you can use zef to install stuff locally without the ecosystem, too | ||
cfa | yeah, but that's not what's documented | 17:00 | |
or at least, if that's the intent it's not clear from the readme | |||
timotimo | OK | 17:02 | |
cfa | filed github.com/drforr/perl6-Perl6-Tidy/issues/5 for DrForr | 17:04 | |
17:11
clkao left
|
|||
El_Che | cfa: if you want your issue handled faster by DrForr, you should write on paper, make origami art of it and send that. He will appreciate it :) | 17:12 | |
17:18
Zoffix joined
|
|||
Zoffix | So why exactly do we have to maintain two downloads pages now? | 17:19 | |
cfa | El_Che: hee hee | ||
timotimo | for some reason files inside perl6.org/source/ are owned by root | 17:22 | |
on www.p6c.org | |||
143719 4.0K drwxr-xr-x 2 root root 4.0K Mar 11 17:19 downloads | |||
17:22
khw joined
|
|||
timotimo | someone did this today? | 17:22 | |
moritz | Zoffix: we don't; i just wanted one on perl6.org with TLS as long as rakudo.org was HTTP-only | 17:23 | |
Zoffix | .tell pmichaud timotimo I'm on it | ||
yoleaux | Zoffix: I'll pass your message to pmichaud. | ||
Zoffix | timotimo: I'm on it | ||
timotimo | OK | ||
Zoffix | moritz: well, I'm getting mixed messages here. As discussed with pmichaud I was converting rakudo.org to a site we can host on p6c infrastructure, but now I see stmuk added a new page to perl6.org having a duplicate and different page with downloads than the one on rakudo.org | 17:24 | |
So what the fuck's going on? I'm not in a mood to participate in dick measuring contests here. | 17:25 | ||
moritz | Zoffix: I'm not aware of what stmuk is doing | ||
Geth | perl6.org: d20a3ea6c4 | (Zoffix Znet)++ (committed using GitHub Web editor) | README.md Bump commit for update |
17:26 | |
Zoffix | There's abunch of warnings from Mowyw "Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\G((?s:.)*?)((?^:{{ <-- HERE ))/ at /usr/share/perl5/App/Mowyw/Lexer.pm line 119," | 17:28 | |
I think that syntax is fatal on newer perls innit? | |||
k, I think build's now unbusted perl6.org/downloads/others.html | 17:29 | ||
cfa | Zoffix: fatal in 5.26, i think | 17:30 | |
timotimo | Zoffix: should the nxadm packages section also point out that it gives you zef if you want it? | ||
cfa | warned in .24? | ||
Zoffix | And I'm pretty sure I busted it because I edited the downloads file as root to add the button to El_Che's packages. Someone was asking for them on Facebook and I didn't want to wait for the next site build period. | 17:31 | |
Like a few days ago. | |||
timotimo: I'm not the author of that page. Its existence is why I asked why we have two pages now. Second one being rakudo.org/how-to-get-rakudo/ that's still linked to from perl6.org/downloads | 17:32 | ||
timotimo | oh! | 17:33 | |
Zoffix | Ah, k, the mowyw warnings are already taken care of on latest release. So we're good if it comes to upgrading stuff: metacpan.org/changes/distribution/App-Mowyw#L2 | 17:34 | |
APic | Uh oh. | 17:36 | |
17:40
Kaiepi left,
Kaiepi joined
|
|||
Zoffix | bbkr: you could use a $!foo attribute, if you don't want the hashy slurpiness that %!foo offers: | 17:46 | |
m: sub foo { return {1=>2}, 3 }; class A { has $.h is rw; has $.s is rw; }; my $a = A.new; ($a.h, $a.s) = foo(); dd $a | |||
camelia | A $a = A.new(h => ${"1" => 2}, s => 3) | ||
Zoffix | bbkr: or write a Proxy method that'd have the %!foo, but proxy it out as a non-slurpy thing: | ||
m: sub foo { return {1=>2}, 3 }; class A { has %.h is rw; has $.s is rw; method h { Proxy.new: :STORE(-> $, %!h {} ), :FETCH{;%!h} }}; my $a = A.new; ($a.h, $a.s) = foo(); dd $a | 17:47 | ||
camelia | A $a = A.new(h => {"1" => 2}, s => 3) | ||
Zoffix | But if you can modify neither the class nor the routine, I'd go with just using `with` and assigning each thing individually | ||
m: sub foo { return {1=>2}, 3 }; class A { has %.h; has $.s is rw; }; my $a = A.new; with foo() { $a.h = .head; $a.s = .tail }; dd $a | |||
camelia | A $a = A.new(h => {"1" => 2}, s => 3) | ||
17:47
zakharyas joined
18:01
Kaiepi left,
Kaiepi joined
18:04
Zoffix left
18:06
bbkr left
18:08
bbkr joined
18:14
zakharyas left
|
|||
Geth | rakudo.org: 2e7344a52d | (Zoffix Znet)++ | 3 files Start carving out the downloads page |
18:34 | |
rakudo.org: d713017773 | (Zoffix Znet)++ | 2 files Add on-hover easter egg to home page Fade in explanation for what "Rakudo" means after 2s hover on logo. |
18:42 | ||
18:43
mscha joined
|
|||
mscha | m: sub foo(Str @bar = <a b c>) { 1 }; say foo; # How can I give an array parameter a default? | 18:44 | |
camelia | Type check failed in binding to parameter '@bar'; expected Positional[Str] but got List ($("a", "b", "c")) in sub foo at <tmp> line 1 in block <unit> at <tmp> line 1 |
||
jnthn | m: sub foo(Str @bar = Array[Str](<a b c>)) { 1 }; say foo; | 18:46 | |
camelia | 1 | ||
jnthn | Just need to keep the types straight | ||
(<a b c> is an untyped list) | |||
18:49
ufobat joined
|
|||
mscha | Thanks, @jnthn! | 18:51 | |
19:08
darutoko left
19:14
mr_ron_ joined
19:16
synopsebot left
19:17
synopsebot joined,
ChanServ sets mode: +v synopsebot
|
|||
Geth | infrastructure-doc: e56ad6a095 | (Zoffix Znet)++ (committed using GitHub Web editor) | hosts/hack.p6c.org.pod Add AlexDaniel to sudoers list |
19:17 | |
infrastructure-doc: 7869d66157 | (Zoffix Znet)++ | hosts/hack.p6c.org.pod Update hack info List info for synopsebot6, Geth, and p6lert service. |
19:25 | ||
infrastructure-doc: b687d76104 | (Zoffix Znet)++ (committed using GitHub Web editor) | hosts/hack.p6c.org.pod s/markdown/Pod/; |
19:26 | ||
19:37
comborico1611 joined
19:44
maettu joined
20:00
Sgeo_ joined
20:03
Sgeo__ left
20:06
cdg joined
20:07
eryst left
20:08
Kaiepi left,
domidumont left
20:10
cdg left
20:11
Kaiepi joined
20:13
cdg joined
20:14
mscha left
20:16
epony left,
rindolf left
20:35
natrys joined
20:46
natrys left
20:47
kurahaupo_ joined,
greppable6 joined
20:49
kurahaupo left
20:50
comborico1611 left
20:51
natrys joined
20:59
rindolf joined
21:03
entonian joined
21:06
entonian left
21:16
epony joined
|
|||
Geth | rakudo.org: 1ca5ba5cac | (Zoffix Znet)++ | templates/people.html.ep Use named routes for IRC chat |
21:29 | |
rakudo.org: bfb9104d63 | (Zoffix Znet)++ | 5 files Add Windows Star install instructions |
21:30 | ||
21:32
wamba left
|
|||
Geth | rakudo.org: e8b373c79e | (Zoffix Znet)++ | templates/files-star-windows.html.ep Tweak titles |
21:37 | |
21:45
mr_ron_ left
21:49
bocaneri joined
21:51
rindolf left
21:54
natrys left,
MasterDuke left
21:55
MasterDuke joined
21:57
rindolf joined
21:59
Ven`` joined
22:00
MasterDuke left
22:02
MasterDuke joined
22:05
releasable6 left
22:06
releasable6 joined
22:07
FROGGS left
22:10
reportable6 left,
reportable6 joined
|
|||
Geth | doc: cac1e43f87 | (Tom Browder)++ (committed using GitHub Web editor) | doc/Language/pod.pod6 add one more space to define the last colmn |
22:12 | |
synopsebot | Link: doc.perl6.org/language/pod | ||
22:16
Ven`` left
22:25
MasterDuke left
22:29
sharksoft joined
|
|||
Geth | rakudo.org: 5812650c0e | (Zoffix Znet)++ | 10 files Assorted tweaks |
22:33 | |
doc: 8d4f609c0d | (Tom Browder)++ (committed using GitHub Web editor) | doc/Language/pod.pod6 tweak grammar and spelling |
|||
synopsebot | Link: doc.perl6.org/language/pod | ||
22:49
kurahaupo_ is now known as kurahaupo
23:00
rindolf left
23:02
Kaiepi left
23:05
lichtkind left,
Kaiepi joined
|
|||
Geth | rakudo.org: 4680c88351 | (Zoffix Znet)++ | 4 files Implement crumbs on deeper pages |
23:08 | |
23:18
lichtkind joined
23:30
pmurias left
23:36
speedChicken joined
|
|||
Geth | rakudo.org: 3efe1b4b50 | (Zoffix Znet)++ | 5 files Add macOS install isntructions |
23:41 | |
23:44
DarthGandalf left
23:45
DarthGandalf joined
|
|||
Geth | rakudo.org: f709f9808b | (Zoffix Znet)++ | templates/files-star-macos.html.ep Add older releases link |
23:46 | |
23:53
cdg left
|