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.
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
Mediocre what was the name of the tool for raku in vscode? 13:48
p6steve ouch! (my head just got hit) 21:12
Anton Antonov Just “Raku” : marketplace.visualstudio.com/items...-navigator 22:03
Sorry. 🙂
Mediocre ty 22:30