|
00:11
bingos_ joined
00:12
BinGOs left,
bingos_ is now known as BinGOs
00:13
BinGOs left,
BinGOs joined
01:06
kylese left
01:08
kylese joined
01:43
japhb left
01:49
japhb joined
02:15
kylese left,
kylese joined
03:01
leppard left
03:37
lucerne90 left
04:27
swaggboi left
04:30
swaggboi joined
04:52
leppard joined
05:20
Sgeo left
05:21
abraxxa joined
07:04
vasko4535586 left,
vasko4535586 joined
07:32
leppard left
07:37
dakkar joined
07:48
rnddim joined,
ShimmerFairy is now known as Guest4078,
Guest4078 left,
rnddim is now known as ShimmerFairy,
ShimmerFairy left
07:49
ShimmerFairy joined
07:54
ShimmerFairy left,
ShimmerFairy joined
|
|||
| patrickb | o/ | 08:36 | |
| I still fail to reliably return multiple values from functions. Can someone help me out of my misery? These are all my failed tries and what happens -> paste.sr.ht/~patrickb/91871eb4887c...d14fcd0467 | 08:37 | ||
| Updated, found a very ugly way to make it work with captures, I'm not content yet: paste.sr.ht/~patrickb/9cc8dedf1b71...8ecebdf485 | 08:56 | ||
| Added another non-satisfying way to do it: paste.sr.ht/~patrickb/4f47a3186d43...19f890396f | 09:45 | ||
| dakkar | patrickb: :(@!a, @!b) := |g(); | 09:51 | |
| still ugly, but maybe less so | 09:52 | ||
| patrickb | Can you explain the syntax? | ||
| dakkar | oh, you don't even need the | | ||
| :(@!a, @!b) := g(); | |||
| patrickb | what's `:(...)` ? | 09:53 | |
| dakkar | high-level, it reads "unpack the result of g() as a 2-element list, and put the first element in @!a and the second to @!b" | ||
| :(…) is a "signature" | |||
| patrickb | it's a Signature, right? | ||
| that's actually pretty nice | 09:54 | ||
| And I don't even need to return a Capture for this to work! | |||
| dakkar: Thank you! | 09:55 | ||
| dakkar | happy to help ☺ | ||
| Geth | ecosystem/main: 76cd201952 | (Elizabeth Mattijsen)++ | META.list Remove NativeHelpers/Blob They will soon re-emerge as Raku Community modules |
10:55 | |
|
12:05
dakkar left,
dakkar joined
|
|||
| disbot4 | <librasteve> I like dakkar Signature - but also can do ($x, $y) = g(); if you don't mind assignment | 12:50 | |
| dakkar | that only works if the targets are scalars | ||
| in patrickb's case, the targets were @! array fields | 12:51 | ||
| disbot4 | <librasteve> ah - red face | ||
| <librasteve> til | 12:52 | ||
|
14:02
abraxxa left,
abraxxa1 joined
14:13
abraxxa joined,
abraxxa1 left
14:38
Guest51 joined
15:28
human-blip left
15:31
human-blip joined
15:43
human-blip left
15:45
human-blip joined
16:18
dakkar left
16:44
johnjay joined,
abraxxa left
17:05
Guest51 left
17:08
Guest99 joined
17:23
Guest99 left
17:24
japhb left
17:44
sjn left,
sjn joined
19:22
leppard joined
|
|||
| xinming | m: my $t = Date.today(:formatter({ sprintf "%4d-%02d", .year, .month, })); $t.say; | 21:07 | |
| camelia | 2026-06 | ||
| xinming | Is there a built-in method for Date class to output current month in this format? | 21:08 | |
| Date.^methods>>.name.say; has yyyy-mm-dd, I think we cal also add yyyy-mm :-) | |||
| lizmat | m: say Date.today.yyyy-mm-dd.substr(0.7) | 21:12 | |
| camelia | 2026-06-17 | ||
| lizmat | m: say Date.today.yyyy-mm-dd.substr(0,7) | ||
| camelia | 2026-06 | ||
| xinming | lizmat: thanks, this is shorter. | 21:17 | |
| lizmat | github.com/rakudo/rakudo/pull/6281 :-) | 21:31 | |
| El_Che | hi | 21:32 | |
| xinming | lizmat++ | 21:37 | |
|
21:50
jjido joined
22:03
jjido left
|
|||
| timo | who wants to build a FALLBACK that lets you make up arbitrary formats on the fly as method names? :) | 22:15 | |
|
22:55
human-blip left
22:56
Sgeo joined
22:57
human-blip joined
23:30
silug left
|
|||