🦋 Welcome to Raku! raku.org/ | evalbot usage: 'p6: say 3;' or /msg camelia p6: ... | irclog: colabti.org/irclogger/irclogger_log/raku
Set by ChanServ on 14 October 2019.
rypervenche Hmm, that seems to do the same as what I had when I remove the %(). That produces an array of lists. If do: @dir-pairs = @dir-pairs».Hash; that gets the desired outcome, albeit in an extra line. 00:11
00:11 rbt left, rbt joined, Black_Ribbon joined 00:54 Altai-man_ joined
rypervenche Ahh, I'm an idiot. I can just add that to the end of the line: my @dir-pairs = (( "before" X=> @before ) Z ( "after" X=> @after ))».Hash; 00:56
That works. :) Thanks for all the help.
00:57 sena_kun left 00:58 oddp left 01:12 molaf left 01:24 molaf joined 01:32 Sgeo left 02:01 Manifest0 left 02:03 Manifest0 joined 02:10 Sgeo joined 02:11 dustinm` left 02:12 Cabanossi left 02:17 dustinm` joined 02:19 aborazmeh joined, aborazmeh left, aborazmeh joined 02:24 Cabanossi joined 02:27 cpage_ joined 02:28 cpage left, cpage_ is now known as cpage 02:55 sena_kun joined 02:57 Altai-man_ left 03:32 aborazmeh left 03:59 tardisx joined 04:17 aborazmeh joined, aborazmeh left, aborazmeh joined 04:28 Cabanossi left 04:36 Cabanossi joined 04:40 OpenZen left 04:54 Altai-man_ joined 04:56 sena_kun left 05:00 aborazmeh left 05:05 Sgeo left 05:10 rbt left 05:11 rbt joined 05:16 wamba joined 05:35 sauvin joined 05:47 aluaces joined, aluaces is now known as alberto 05:48 alberto is now known as Guest91601 05:49 charsbar left 05:53 ambs_ left, ambs joined 06:05 Sgeo joined, brtastic joined, skids left, andrzejku joined 06:10 stoned75 joined 06:17 zacts joined 06:22 charsbar joined, ambs left, ambs joined 06:31 xinming left 06:33 xinming joined 06:55 sena_kun joined 06:57 Altai-man_ left 07:04 syntaxman joined, pecastro joined 07:11 gabiruh left, gabiruh joined 07:31 jmerelo joined 07:32 ShimmerFairy left, ShimmerFairy joined 07:40 squashable6 left 07:43 squashable6 joined 07:44 dakkar joined 07:48 thundergnat left 07:50 Geth left 07:58 Geth joined
Geth doc: 0980a9cf7d | (JJ Merelo)++ | doc/Type/Failure.pod6
Marks as unhandled a handled failure if fail is called on it refs #2632
08:10
linkable6 Link: docs.raku.org/type/Failure
DOC#2632 [open]: github.com/Raku/doc/issues/2632 [Hacktoberfest][RFE][big][docs][good first issue][help wanted][new][âš  Top Priority âš ] Checklist for 6.d
08:11 zacts left 08:22 Sgeo left 08:45 wamba left 08:49 wamba joined 08:54 Altai-man_ joined 08:57 sena_kun left 09:00 stoned75 left 09:02 stoned75 joined, rindolf joined 09:24 squashable6 left 09:26 squashable6 joined 09:32 rbt left 09:33 rbt joined 09:35 leont joined 09:45 thundergnat joined 10:01 thundergnat left 10:11 rbt left, rbt joined 10:15 oddp joined 10:17 aborazmeh joined, aborazmeh left, aborazmeh joined
samebchase- What's the idiom for: "if a key is not found in the map, return this default value instead". I am messing around with the ternary operator, but it seems I am repeating myself 10:19
my $val = %m<key>:exists ?? %m<key> !! 'default'; 10:20
what's an elegant way to type %m<key> only once 10:21
lizmat m: my %h is default(42) = a => 42; dd %h<a b> 10:22
camelia (42, 42)
lizmat m: my %h is default(42) = a => 66; dd %h<a b>
camelia (66, 42)
lizmat samebchase ^^ 10:24
samebchase- lizmat: nice! I want the behaviour "check if this value is in the map, or return this other value instead". The 'default' value has no connection to the map.
%m<key> or 'value' <-- this behaviour works in some languages
lizmat you mean only for that particular key?
assuming you do not have undefined values in the hash, you could use // 10:25
m: my %h; dd %h<a> // 42
camelia 42
samebchase- lizmat: yes!!! that is what I need
MasterDuke m: my %h; dd %h<a> // 42; dd %h # just showing it doesn't auto-vivify the given key 10:26
camelia 42
Hash %h = {}
lizmat MasterDuke: auto-vivification is much smarter in Raku
m: my %h; my $b = %h<a>; dd %h; $b = 42; dd %h 10:27
camelia Hash %h = {}
Hash %h = {}
lizmat m: my %h; my $b := %h<a>; dd %h; $b = 42; dd %h
camelia Hash %h = {}
Hash %h = {:a(42)}
10:30 MasterDuke left
samebchase- The defined-or operator is probably my favourite operator 10:30
10:38 MasterDuke joined 10:41 Black_Ribbon left 10:55 sena_kun joined 10:56 Altai-man_ left 11:00 squashable6 left 11:04 squashable6 joined 11:05 xinming left, oodani left 11:06 xinming joined 11:07 oodani joined 11:08 aborazmeh left
samebchase- What's the closest we have to `python3 -m http.server` where it serves the current directory? 11:09
11:09 molaf left
jmerelo samebchase-: probably something with Cro::HTTP, but there's nothing in the standard library 11:11
samebchase- thanks jmerelo 11:16
11:28 poga left 11:35 Guest91601 is now known as aluaces 11:47 patrickb joined 12:04 molaf joined 12:30 girafe left 12:33 cpan-raku left 12:35 cpan-raku joined, cpan-raku left, cpan-raku joined 12:39 brtastic left 12:54 Altai-man_ joined 12:57 sena_kun left 13:08 MilkmanDan left 13:23 girafe joined 13:24 dataange` joined 13:26 dataangel left 13:27 jmerelo left 13:44 brtastic joined 14:00 rindolf left 14:06 notandinus left 14:07 notandin` joined 14:08 libertas left, libertas joined 14:09 rindolf joined 14:10 notandin` left 14:11 team\andinus joined 14:20 patrickb left 14:24 dataange` is now known as dataangel 14:32 wamba left 14:34 skids joined 14:37 MilkmanDan joined 14:46 xinming left 14:47 xinming joined 14:49 MilkmanDan left 14:50 soursBot joined 14:55 sena_kun joined 14:57 Altai-man_ left 14:58 OpenZen joined 15:01 MilkmanDan joined 15:02 Sgeo joined 15:10 rbt left 15:11 rbt joined 15:14 MilkmanDan left 15:24 MilkmanDan joined 15:32 dataangel left 15:34 rir joined 15:40 dataangel joined 15:50 sjn left 15:51 sjn joined 15:58 leont_ joined 16:02 andrzejku left 16:06 sno left 16:08 squashable6 left 16:09 sno joined 16:10 squashable6 joined 16:21 soursBot left 16:26 soursBot joined 16:30 MasterDuke left 16:35 lichtkind joined 16:42 dakkar left 16:46 Black_Ribbon joined 16:51 natrys joined 16:54 Altai-man_ joined 16:57 sena_kun left 17:02 xinming left 17:04 xinming joined 17:07 soursBot left 17:23 soursBot joined 17:33 Kaiepi left 17:36 Kaiepi joined
oddp Although quite a bit to digest for a noob like me, I really liked the latest grant report. Thanks for powering through with all that work! 17:56
18:03 libertas left
lizmat oddp: it's quite a bit to digest for most :-) 18:03
18:05 MasterDuke joined 18:06 rindolf left 18:12 rindolf joined 18:28 soursBot left, sauvin left 18:29 cpage_ joined 18:32 xinming left, cpage left, cpage_ is now known as cpage 18:33 xinming joined
cpan-raku New module released to CPAN! LibXML (0.5.0) by 03WARRINGD 18:34
New module released to CPAN! LibXSLT (0.1.0) by 03WARRINGD 18:42
18:55 sena_kun joined 18:57 Altai-man_ left 19:09 brtastic left 19:13 soursBot joined 19:35 rbt left 19:39 wamba joined 19:58 stoned75 left 20:07 aborazmeh joined, aborazmeh left, aborazmeh joined 20:08 rindolf left, raku-bridge3 joined, raku-bridge3 left, raku-bridge3 joined 20:09 lizmat_ joined 20:10 samebchase-1 joined 20:11 Kaeipi joined, charsbar_ joined 20:12 ambs_ joined, kst` joined 20:13 xkr47_ joined, ensamvarg_ joined 20:14 telex left, literal_ joined, wamba left, pecastro_ joined, cj_ joined, telex joined, cj left, tbrowder__ joined 20:15 dataange` joined, Noisytoot_ joined 20:18 Ekho- joined, Kaiepi left, dataangel left, pecastro left, ambs left, charsbar left, kst left, kini left, tbrowder left, lizmat left, raku-bridge left, Noisytoot left, ensamvarg left, Ekho left, literal left, xxpor left, samebchase left, samebchase- left, xkr47 left, charsbar_ is now known as charsbar, tbrowder__ is now known as tbrowder 20:19 raku-bridge3 is now known as raku-bridge, Ekho- is now known as Ekho 20:20 xxpor joined, kini joined 20:23 samebchase joined 20:26 xkr47_ left, xkr47 joined 20:30 cj_ is now known as cj 20:32 andrzejku joined 20:35 kensanata joined 20:36 ukine left, zostay left 20:37 Grinnz left 20:38 kawaii left 20:41 spycrab0 left 20:45 spycrab0 joined 20:50 peteretep left, soursBot left 20:52 mithaldu_ left, peteretep joined 20:54 Altai-man_ joined, spycrab0 left 20:56 sena_kun left 21:02 rir left 21:11 andrzejku left
Altai-man_ releasable6, status 21:11
releasable6 Altai-man_, Next release in ≈2 days and ≈21 hours. There are no known blockers. 143 out of 292 commits logged (⚠ 4 warnings)
Altai-man_, Details: gist.github.com/724bba04e9c46eba3d...dc5db25faa
21:11 peteretep left
cpan-raku New module released to CPAN! Sparrow6 (0.0.23) by 03MELEZHIK 21:17
New module released to CPAN! Sparrow6 (0.0.24) by 03MELEZHIK 21:24
21:29 melezhik joined
melezhik .tell El_Che - fyi - www.reddit.com/r/azuredevops/comme...perations/ 21:29
tellable6 melezhik, I'll pass your message to El_Che
melezhik upss, I meant to post it to r/rakulang .... :-)) 21:32
21:33 natrys left
melezhik reposted - www.reddit.com/r/rakulang/comments...perations/ 21:35
21:37 spycrab0 joined 21:38 kensanata left, peteretep joined 21:39 zostay joined 21:40 kawaii joined 21:43 melezhik left, mithaldu_ joined 21:44 aborazmeh left
raku-bridge <DataKinds> just saw the work on zeco, real cool stuff 21:51
<DataKinds> i'd be happy to lend a hand if y'all need it (cc: tony-o)
<DataKinds> has there been any more work on macros since masak's 007? 21:58
22:02 ukine joined
Altai-man_ Have you seen jnthn's presentation on RakuAST? 22:07
See jnthn.net/papers/2020-gpw-realizing...macros.mp4
22:08 melezhik joined
melezhik .tell El_Che - I've create home project and call it Spazure - Sparrow automation for Azure DevOps ))) - github.com/melezhik/Spazure 22:09
tellable6 melezhik, I'll pass your message to El_Che
raku-bridge <DataKinds> Altai-man_: got a Youtube link? streaming video doesn't work super well on mobile 22:14
22:15 Grinnz joined 22:32 lizmat_ is now known as lizmat 22:36 skids left 22:41 aborazmeh joined, aborazmeh left, aborazmeh joined
Altai-man_ No youtube. 22:44
22:49 melezhik left 22:55 lichtkind left, sena_kun joined 22:56 Altai-man_ left 23:09 MasterDuke left 23:11 pecastro_ left 23:21 rbt joined 23:42 aborazmeh left 23:51 marcusr left, leont_ left, leont left 23:52 marcusr joined 23:57 acw joined