This channel is intended for people just starting with the Raku Programming Language ( Logs are available at
Set by lizmat on 8 June 2022.
00:14 deoac joined
deoac m: $a=1; say $a; { let $a=2; say $a }; say $a 00:14
camelia ===SORRY!=== Error while compiling <tmp>
Variable '$a' is not declared. Perhaps you forgot a 'sub' if this was
intended to be part of a signature?
at <tmp>:1
------> <BOL>⏏$a=1; say $a; { let $a=2; say $a }; say
deoac m: my $a=1; say $a; { let $a=2; say $a }; say $a
camelia 1
deoac m: my $a=1; say $a; { let $a=2; dd $a }; say $a 00:15
camelia 1
Int $a = 2
deoac Why the difference in the 3rd output?
rf Have you read the let documentation? 00:31
Refers to a variable in an outer scope whose value will be restored if the block exits unsuccessfully, implying that the block returned a defined object.
dd returns Nil so it restores
deoac: ^
m: my $a=1; say $a; { let $a=2; dd $a; 123 }; say $a 00:32
camelia 1
Int $a = 2
deoac Ah, I didn't realize dd() returned a value implying the block failed.  Thank you. 00:41
rf Yeah it returns Nil, whereas say returns the gist 00:42
01:01 MasterDuke joined 01:33 Manifest0 left
Yeuph lol, chatGPT isn't too bad at helping with Raku problems. 01:48
I've been having some fun
it seems to default to wanting to use NQP 01:49
have to ask it to stop
02:08 deoac left, theesm left 02:10 theesm joined 02:11 frost joined 02:13 frost left 02:40 frost joined
shmup that was my experience Yeuph, glad it's helped 02:52
02:58 frost left 04:08 rf left 04:33 frost joined 09:38 ab5tract joined 10:00 NemokoschKiwi joined 10:15 NemokoschKiwi left 10:32 Manifest0 joined 10:50 frost left 11:18 NemokoschKiwi joined 11:33 NemokoschKiwi left 15:35 rf joined
el gatito (** advocate) pistol operator! 17:02
ab5tract I feel like that should be classified as an infix operator, not a postfix 17:04
rf Yeah I think the doc is wrong 17:07
17:25 ab5tract left
Nemokosch What precedence may it have? 18:10
18:53 rf left 18:56 ab5tract joined
Rog love this 20:17
guifa Alright scientific is done, although it's currently formatting just doing all digits, need to get it to respect significant digits now 21:15
21:31 guifa_ joined 21:35 guifa left 23:11 rf joined 23:37 Heptite left