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:41 deoac left 00:44 deoac joined 01:14 uzl[m] joined 02:12 teatime left 02:13 tea3po joined, teatime joined 02:16 teatwo left 02:18 tea3po left, teatime left 02:19 tea3po joined, teatime joined 02:30 tea3po left, tea3po joined 03:00 tea3po left, teatime left, tea3po joined, teatime joined 03:28 deoac left 03:45 tea3po left, teatime left, tea3po joined, teatime joined 04:13 lucs left, lucs joined 07:47 habere-et-disper joined
habere-et-disper Can/should I add a method to a subset? I tried: 08:12
m: subset Even of Int where * %% 2; Even.^add_method('double', method ($n:) { 2 * $n });
camelia No such method 'add_method' for invocant of type
'Perl6::Metamodel::SubsetHOW'
in block <unit> at <tmp> line 1
Nemokosch I'm pretty sure you can take that as a no 08:15
a subset is not a new standalone type 08:16
habere-et-disper Thanks for clarifying. :) 08:26
Nemokosch what you can do is to add a candidate that is constrained to this type 08:28
perhaps it even works on the self parameter
but then augmenting something built-in is generally disadvised 08:29
08:45 habere-et-disper left 10:57 NemokoschKiwi joined 12:04 NemokoschKiwi left 12:14 NemokoschKiwi joined 12:20 Heptite left 12:27 NemokoschKiwi left 13:37 jgaz joined
Mediocre what was the name of the tool for raku in vscode? 13:48
14:00 MasterDuke joined 14:11 teatwo joined, human-blip left 14:14 tea3po left 14:15 teatime left, tea3po joined 14:17 human-blip joined 18:00 Heptite joined 18:25 deoac joined 19:22 NemokoschKiwi joined 19:41 Manifest0 joined 20:24 NemokoschKiwi left
p6steve ouch! (my head just got hit) 21:12
21:18 jgaz left
Anton Antonov Just “Raku” : marketplace.visualstudio.com/items...-navigator 22:03
Sorry. 🙂
Mediocre ty 22:30