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.
Nemokosch TIL `raku -m` which is apparently a lot like `node -r` 10:41
lizmat -m ? 11:48
you mean -M
equinox hi what's happening when I do `&(4)`? 12:10
i think it's the same as `$(4)` 12:11
but not sure why or how 12:12
lizmat It indeed seems to codegen into 4.item 12:33
feels like an oversight in the grammar
equinox oh, thanks 12:35
deadmarshal What would be the Perl's equivalent of this? (0) x $n; which gives an array of n zeros. 16:42
lizmat and yet another Rakudo Weekly News hits the Net: rakudoweekly.blog/2022/12/26/2022-...ntonovmas/ 17:16
Nemokosch deadmarshal: 0 xx $n 17:25
(reminder that parens are not doing anything apart from setting the precedence)
deadmarshal thanks 17:38
jaguart is there any way to reset within the REPL - e.g. so that it forgets all the lexicals etc.? 23:10
Nemokosch I don't know but keep in mind that the REPL is not at all that good at remembering things like that in the first place. For example, you can always just redeclare a variable and it won't complain. At the same time, binding is absolutely broken and you will get weird complaints if you try to "rebind" anything. 23:13
jaguart so maybe its a case of use '-e' 23:29
Nemokosch the REPL is good for prototyping not-so-hardcore scripts. For example, you want to figure out how you can process a certain textfile, or a common use-case for me is to include CoreHackers::Sourcery and investigate how built-in functions are implemented 23:32
at the same time, it's really not a fully featured Raku runtime - notoriously it cannot make use of operators (maybe terms in general) that you define 23:33
I suspect somehow it boils down to use of EVAL