🦋 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:00
reportable6 left
00:02
reportable6 joined
00:09
Manifest0 left
00:57
jrjsmrtn_ joined,
jrjsmrtn left
01:33
Xliff joined
|
|||
Xliff | Can you pun more traits to a class-instances attribute object at run-time? | 01:34 | |
m: class A { $.a }; trait_mod:<is>(A.^attributes.head, :rw) | |||
camelia | ===SORRY!=== Error while compiling <tmp> Variable $.a used where no 'self' is available at <tmp>:1 ------> class A { $.a⏏ }; trait_mod:<is>(A.^attributes.head, : expecting any of: term |
||
Xliff | m: class A { has $.a }; trait_mod:<is>(A.^attributes.head, :rw) | 01:35 | |
camelia | ( no output ) | ||
Xliff | m: class A { has $.a }; trait_mod:<is>(A.^attributes.head, :rw); my $a; $a.a = 2; $a.gist.say | ||
camelia | No such method 'a' for invocant of type 'Any' in block <unit> at <tmp> line 1 |
||
Xliff | m: class A { has $.a }; sub trait_mod:<is> (Attribute \at, :$foo is required) { say "Foo!" }; trait_mod:<is>(A.^attributes.head, :foo); my $a; $a.a = 2; $a.gist.say | 01:36 | |
camelia | Foo! No such method 'a' for invocant of type 'Any' in block <unit> at <tmp> line 1 |
||
Xliff | m: class A { has $.a }; role B { method a { say "A" } }; sub trait_mod:<is> (Attribute \at, :$foo is required) { say "Foo!"; a does A}; trait_mod:<is>(A.^attributes.head, :foo); my $a; $a.gist.say | 01:37 | |
camelia | ===SORRY!=== Error while compiling <tmp> Undeclared routines: a used at line 1 does used at line 1 |
||
Xliff | m: class A { has $.a }; role B { method a { say "A" } }; sub trait_mod:<is> (Attribute \at, :$foo is required) { say "Foo!"; at does A}; trait_mod:<is>(A.^attributes.head, :foo); my $a; $a.gist.say | 01:38 | |
camelia | Foo! Cannot mix in non-composable type A into object of type Attribute in sub trait_mod:<is> at <tmp> line 1 in block <unit> at <tmp> line 1 |
||
02:33
evalable6 left,
linkable6 left
02:34
Xliff left
02:36
evalable6 joined,
linkable6 joined
03:27
guifa left
04:27
evalable6 left,
linkable6 left,
linkable6 joined
04:29
evalable6 joined
05:03
bpalmer` is now known as bpalmer
05:26
siavash joined
06:00
reportable6 left
06:03
reportable6 joined
07:03
reportable6 left,
unicodable6 left,
notable6 left,
quotable6 left,
sourceable6 left,
committable6 left,
nativecallable6 left,
coverable6 left,
squashable6 left,
evalable6 left,
bisectable6 left,
greppable6 left,
bloatable6 left,
benchable6 left,
linkable6 left,
statisfiable6 left,
releasable6 left,
shareable6 left,
tellable6 left,
tellable6 joined
07:04
coverable6 joined,
bloatable6 joined,
squashable6 joined,
reportable6 joined,
synthmeat left
07:05
synthmeat joined,
shareable6 joined,
benchable6 joined,
unicodable6 joined,
committable6 joined,
bisectable6 joined,
nativecallable6 joined,
releasable6 joined
07:06
greppable6 joined,
quotable6 joined
07:07
statisfiable6 joined
07:25
notable6 joined,
evalable6 joined,
sourceable6 joined
07:26
linkable6 joined
08:17
sena_kun joined
08:23
tea3po left
08:24
tea3po joined
08:28
teatwo joined
08:31
tea3po left
08:43
Sgeo left
09:00
jpn joined
09:27
melezhik joined
|
|||
melezhik | . | 09:27 | |
09:31
melezhik left
|
|||
Geth | Raku-Steering-Council/main: 488cfb25b8 | (Elizabeth Mattijsen)++ | minutes/20230826.md Add RSC meeting minutes for 2023-08-26 |
09:33 | |
09:33
wayland76 joined
09:39
sena_kun left,
wayland76 left
09:42
wayland76 joined
09:47
razetime joined
09:52
siavash left
10:17
jpn_ joined
10:19
jpn left
|
|||
wayland76 | Hi! I'm making some objects and pushing them into a list, but I want to avoid duplicates (ie. the exact same object being in the list twice). Does anyone have any tips for me on how to find out if a particular object is already in a list? | 10:28 | |
lizmat | docs.raku.org/type/independent-rou...ine_unique | 10:29 | |
10:29
abraxxa joined,
abraxxa left
|
|||
lizmat | so what you'd basically do, is to push to the array, and then run .= unique on it | 10:29 | |
or if your objects can be part of a Seq, it could be something like | 10:30 | ||
my @unique-objects = objects.producer.unique | |||
10:31
abraxxa joined
|
|||
wayland76 | Thanks! Very useful. That helped me find the answer I used: if (not $dfn ∈ @!nodes) { @!nodes.push: $dfn; } | 10:33 | |
10:38
abraxxa left
|
|||
lizmat | wayland76 there's also docs.raku.org/language/operators#infix_∉ | 10:47 | |
10:51
manu_ joined
10:52
eseyman_ left
11:08
jpn_ left,
jpn joined
|
|||
lizmat | And yet another Rakudo Weekly News hits the Net: rakudoweekly.blog/2023/08/28/2023-...ferencing/ | 11:09 | |
11:11
razetime left
11:13
jpn_ joined
11:14
jpn left
11:18
jpn_ left
11:39
wayland76 left
11:50
wayland joined
12:00
reportable6 left
12:01
reportable6 joined
12:02
razetime joined
12:05
manu_ is now known as eseyman
|
|||
El_Che | 09-moar/01-profilers.t has been extremly flappy on the last release | 12:07 | |
tbrowder__ | ++lizmat | 12:11 | |
12:58
razetime left
13:05
Xliff joined
|
|||
Xliff | What editor is everyone using for Raku coding? | 13:06 | |
13:08
PipStuart left
13:16
razetime joined
13:17
ab5tract left
13:28
jpn joined
13:45
xinming left
13:48
xinming joined
14:06
jpn left
14:08
jpn joined
14:09
Vyrus left
14:14
ab5tract joined
|
|||
tbrowder__ | emacs and vi | 14:20 | |
japhb | Emacs | 14:29 | |
14:44
Vyrus joined
|
|||
El_Che | no Comma users here? | 14:49 | |
TieUpYourCamel | I use eclipse | 14:54 | |
El_Che | rakudo-pkg v2023.03 released github.com/nxadm/rakudo-pkg/ | 15:04 | |
rakudo-pkg v2023.08 released github.com/nxadm/rakudo-pkg/ | 15:05 | ||
:) | |||
15:10
jpn left,
clarkema1 left
15:11
raiph joined
15:15
Vyrus left
15:34
squashable6 left
15:36
squashable6 joined
15:39
bpalmer left
15:47
Vyrus joined
16:33
swaggboi left
16:34
Sgeo joined
16:44
raiph left
16:50
jpn joined
|
|||
tonyo | vim | 16:52 | |
the one true editor. | 16:53 | ||
16:56
jpn left
17:08
jpn joined
17:22
razetime left
17:24
jpn left
17:28
jpn joined
17:30
cm left,
cm joined
17:32
ab5tract left
17:51
Xliff left
17:52
Xliff joined
18:00
reportable6 left
18:01
reportable6 joined
18:16
sena_kun joined
18:17
swaggboi joined
18:21
Sgeo left
18:36
jpn left
19:23
bartolin joined
19:27
jpn joined
19:29
wafflus joined
20:08
jpn left
|
|||
tbrowder__ | El_Che: thanks | 20:16 | |
20:18
tea3po joined
20:21
teatwo left
20:33
tea3po left,
tea3po joined
20:42
wafflus left
20:51
jpn joined
20:56
ab5tract joined
21:08
jpn left
21:26
jpn joined
21:31
jpn left
21:43
ab5tract left
21:55
sena_kun left
22:46
wayland left
23:14
jpn joined
23:19
jpn left
23:31
Voldenet left
23:32
Voldenet joined
|