This channel is intended for people just starting with the Raku Programming Language (raku.org). Logs are available at irclogs.raku.org/raku-beginner/live.html Set by lizmat on 8 June 2022. |
|||
00:17
habere-et-disper joined,
habere-et-disper left
00:18
habere-et-disper joined,
habere-et-disper left
01:36
topnep left
01:37
topnep joined
03:41
topnep left
03:43
topnep joined
05:10
kjp left
05:11
kjp joined
05:13
kjp left
05:14
kjp joined
06:11
guifa left
06:16
guifa joined
07:30
guifa left
07:31
guifa joined
07:59
dakkar joined
|
|||
frostcod | m: my &x = { *>>.fmt("%02x").join.say }; x Buf.new: [1,2] | 08:52 | |
Raku eval | Exit code: 1 ===SORRY!=== Error while compiling /home/glot/main.raku Malformed double closure; WhateverCode is already a closure without curlies, so either remove the curlies or use valid parameter syntax instead of * at /home/glot/main.raku:1 ------> my &x = { *>>.fmt("%02x").join.say }⏏; x Buf.new: [1,2] expecting any of: horizontal whitespace statement end statement modifier | ||
statement modifier loop | |||
frostcod | m: my &x = *>>.fmt("%02x").join.say ; x Buf.new: [1,2] | ||
Raku eval | Exit code: 1 Type check failed in assignment to &x; expected Callable but got Capture (\(*)) in block <unit> at main.raku line 1 | ||
frostcod | m:my &x = *>>.fmt("%02x").join.say ; x Buf.new: [1,2] | 08:53 | |
Raku eval | 0102 | ||
frostcod | m: my &x = *>>.fmt("%02x").join.say ; x Buf.new: [1,2] | 08:54 | |
Raku eval | 0102 | ||
frostcod | Why doesn't this work under RakuAST? | 08:56 | |
RAKUDO_RAKUAST=1 raku -e 'my &x = *>>.fmt("%02x").join.say ; x Buf.new: [1,2]' Cannot resolve caller fmt(Whatever:D, Str:D); Routine does not have any candidates. Is only the proto defined? in block <unit> at -e line 1 | |||
Is this reasonable/ | 08:57 | ||
09:59
topnep left
10:01
topnep joined
12:05
topnep left
|
|||
librasteve | @frostcod I would defer to the AST experts on this one ... they often drop by when the sun comes up in California | 12:05 | |
12:05
topnep joined
|
|||
frostcod | ok, I'm very curious about this😵💫 | 13:02 | |
nurturethevibe | Most actively maintained Discord package if any? | 13:32 | |
tpaul64_18694 | looks like the whatever currying isn't being invoked for a hyper methodcall | 14:12 | |
m: my &x = *.fmt("%02x", "").say; x Buf.new: [1,2,3,4]; | 14:13 | ||
Raku eval | Exit code: 1 Cannot resolve caller fmt(Buf:D, Str:D, Str:D); Routine does not have any candidates. Is only the proto defined? in block <unit> at main.raku line 1 | ||
tpaul64_18694 | m: my &x = *.fmt("%02x", "").say; x Buf.new: [1,2,3,4]; | ||
Raku eval | Exit code: 1 Cannot resolve caller fmt(Buf:D, Str:D, Str:D); Routine does not have any candidates. Is only the proto defined? in block <unit> at main.raku line 1 | ||
tpaul64_18694 | m: my &x = *.list.fmt("%02x", "").say; x Buf.new: [1,2,3,4]; | ||
Raku eval | 01020304 | ||
tpaul64_18694 | there we go, that's what i wanted | ||
you don't need to hyper or map .fmt if you .list the Buf first, because fmt on list will format the list elements and join them with the second string you provide | 14:14 | ||
frostcod | Thx, that's a solution | 15:20 | |
But I'm still confused about the different behavior in rakuast | 15:21 | ||
ab5tract | frostcod: RakuAST still has some bugs to iron out. Would you mind filing a bug report? | 15:22 | |
frostcod | Sure, I'm willing to report | 15:24 | |
I'm afraid I can only do it tomorrow... | 15:29 | ||
ab5tract | frostcod: no worries! whenever is convenient for you | 16:11 | |
16:13
kjp left
16:14
kjp joined,
topnep left
16:16
topnep joined
|
|||
lizmat | frostcod ab5tract writing up an issue atm | 16:22 | |
github.com/rakudo/rakudo/issues/5901 | 16:31 | ||
ab5tract | lizmat++ | ||
16:34
dakkar left
18:19
topnep left
18:20
topnep joined
18:30
librasteve_ joined
18:32
habere-et-disper joined
19:46
habere-et-disper left
20:02
habere-et-disper joined
20:24
topnep left
20:26
topnep joined
21:53
habere-et-disper left
22:02
habere-et-disper joined
22:53
habere-et-disper left
23:53
A008 joined
|