7 Jul 2026
pippo pippo left 16:52
acidsys acidsys left 16:53
acidsys acidsys joined 16:55
human-blip human-blip left 17:12
human-blip human-blip joined 17:13
acidsys acidsys left 17:23
acidsys acidsys joined 17:25
abraxxa abraxxa joined 18:09
rmv rmv left 18:18
rmv rmv joined 18:55
rmv rmv left
rmv rmv joined
topnep topnep left 19:23
topnep topnep joined 19:26
swaggboi swaggboi left 20:23
swaggboi swaggboi joined 20:26
ShimmerFairy ShimmerFairy left 20:35
ShimmerFairy ShimmerFairy joined
[Coke] I have a class, declaring a has $.thing - I want to initialize this right here at the declaration, it's an almost-never changing piece of config and I don't want to have to set it during the BUILD. any options? 20:40
(also it is using $?FILE)
ah, I want "is default" 20:42
Thanks, rubber ducks.
Voldenet you can set it right at the declaration 20:54
m: class Thing { has $.thing = now }; for ^3 { Thing.new.thing.say; Thing.new(thing => $_).say } 20:55
camelia Instant:1783457741.042075846
Thing.new(thing => 0)
Instant:1783457741.046650267
Thing.new(thing => 1)
Instant:1783457741.046862449
Thing.new(thing => 2)