🦋 Welcome to the MAIN() IRC channel of the Raku Programming Language (raku.org). Log available at irclogs.raku.org/raku/live.html . If you're a beginner, you can also check out the #raku-beginner channel!
Set by lizmat on 6 September 2022.
00:16 jpn joined 01:06 Manifest0 left
tbrowder melezhik: haven't had time...will be awhile... 01:52
01:55 jpn left 02:53 librasteve_ left 02:55 ryoskzypu left 02:57 nil78 left 02:59 hulk joined, nil78 joined 03:00 kylese left 03:15 hulk left, kylese joined 03:19 ryoskzypu joined 04:03 Aedil joined 04:06 ryoskzypu left 04:07 ryoskzypu joined 04:45 Aedil left 04:58 Aedil joined 05:04 nil78 left 05:20 nil78 joined 05:42 nil78 left 05:52 nil78 joined 05:56 phogg left 05:57 phogg joined 06:55 nil78 left 06:58 nil78 joined 07:06 jaguart joined, kylese left 07:10 Sgeo left, kylese joined 07:27 wbooze joined 08:25 sena_kun joined 08:38 kaskal left, kaskal joined 08:53 dakkar joined 09:53 nil78 left 09:55 nil78 joined 10:27 jpn joined 10:38 wbooze left 11:05 jpn_ joined 11:07 jpn left 11:17 tjr left 11:38 tjr joined 12:19 jpn_ left 12:21 jpn joined 12:31 jpn left 12:43 nil78 left 12:56 jpn joined 12:57 nil78 joined 13:24 mtj left 13:37 Aedil left 13:45 Aedil joined 14:12 kylese left 14:17 kylese joined 15:07 yewscion joined, yewscion left 15:35 nine left, nine joined 15:58 apac joined 16:06 dawids joined 16:10 dawids left 16:33 donaldh joined 16:37 wbooze joined 16:40 apac left 16:47 ryoskzypu left 16:48 ryoskzypu joined 17:13 apac joined 17:22 Mrtophat joined
Mrtophat huh 17:22
lizmat eh? 17:23
weekly: bsky.app/profile/richardkadrey.bsk...hlcqzvz222 17:24
notable6 lizmat, Noted! (weekly)
17:26 wbooze left 17:33 nil78 left 17:35 Mrtophat left 17:37 dakkar left 17:39 nil78 joined 17:42 apac left 18:07 MyNetAz left 18:23 MyNetAz joined 19:31 Aedil left 19:39 jpn left 20:18 Manifest0 joined 20:22 MyNetAz left 20:37 MyNetAz joined 21:04 apac joined
tbrowder lizmat: will you be putting Data::Dump::Tree in community modules? i would like to submit a PR for it. 21:11
to try to make it work on macos 21:13
21:40 apac left 21:42 habere-et-disper joined 21:59 jpn joined
lucs Given a declaration like method baz (Int() $foo) , what do the parens after Int mean? 22:13
22:13 habere-et-disper left
librasteve lucs: they specify that the argument should be coerced into the required type Int (if possible) 22:19
lucs Ah, I see. Thanks.
librasteve docs.raku.org/language/typesystem#Coercion
lucs Interesting. 22:21
librasteve m: sub baz (Str $foo) {say $foo}; baz 12; baz 'two'; 22:22
evalable6 (exit code 1) ===SORRY!=== Error while compiling /tmp/pLaIPHsaST
Calling baz(Int) will never work with declared signature (Str $foo)
at /tmp/pLaIPHsaST:1
------> sub baz (Str $foo) {say $foo}; <HERE>baz 12; baz 'two';
22:23
Raku eval Exit code: 1 ===SORRY!=== Error while compiling main.raku Calling baz(Int) will never work with declared signature (Str $foo) at main.raku:1 ------> sub baz (Str $foo) {say $foo}; ⏏baz 12; baz 'two';
librasteve m: sub baz (Str() $foo) {say $foo}; baz 12; baz 'two';
Raku eval 12 two
evalable6 12
two
lucs So about those parentheses, in the third "multi method" shown at docs.raku.org/type/DateTime#method_new, are the absent parentheses after the Int for $minute simply a typo?
librasteve in the 2nd example, Int 12 is coerced to Str
lucs Yep, gotcha. 22:24
librasteve hmmm - dunno 22:27
22:29 habere-et-disper joined
m: say <5/2>.Int 22:32
Raku eval 2
evalable6 2
librasteve For handling points in civil time, a DateTime object stores year, month, day, hour, minute (all Int), second (potentially fractional) 22:33
so my guess is that the Signature line Int() $hour, Int $minute, $second, is intended to disallow fractional $minute 22:34
but above my understanding 22:35
scullucs That makes sense, but I was wondering why the coercion wasn't applied for only $minute.
librasteve its a good question - sorry I am just guessing 22:36
must sleep 22:37
scullucs In that case, sleep well 🙂
librasteve g'night
22:44 jpn left 22:51 habere-et-disper left 22:55 Sgeo joined 23:11 sena_kun left