Raku Conference Day 2 on Youtube: www.youtube.com/watch?v=BL9-XdC9WYI 🦋 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 14 August 2022.
Nemokosch Hello bello 06:39
I have a question. What happens when there is a name conflict between global stuff and an Enum value? 06:41
lizmat m: enum Foo <True False>; say 42 if False 08:03
camelia 42
lizmat remember, it's all lexical in Raku, so they will override the global meaning in the lexical scope they're defined 08:04
Nemokosch now here is the thing
I had an enum that I tried to use for CLI
one of the values was Label 08:06
the CLI wouldn't accept that value
and then I noticed that Label exists globally
all the other values worked but Label
why is that?
moritz_ you do things like OUTER: for @list -> $x { for @other -> $y { next OUTER if $x == $y; ... }}. In this case, OUTER is a Label 08:19
*you can do 08:20
Nemokosch that's okay but I just want either Label to work as an Enum name from the CLI as well, or get some proper feedback about what goes wrong when trying to pass it 😅 08:24
this isn't specific to Label but any global non-keyword name
Geth ¦ problem-solving: patrickbkr assigned to codesections Issue When and by whom should changes in Rakudo be documented? github.com/Raku/problem-solving/issues/343 08:28
leont Nemokosch: It will probably work if you use Getopt::Long 😉 10:48
tellable6 leont, I'll pass your message to Nemokosch
Nemokosch I'm curious about what actually happened 10:52
But thanks for the advice, it can come handy, especially if others don't like the default argument parsing 10:53
lizmat clickbaits rakudoweekly.blog/2022/08/22/2022-34-rakuust/ 13:34
sjn clicks the bait uncritically 13:40
tonyo some good articles in there 16:48
tellable6 2022-08-21T04:31:32Z #raku <Xliff> tonyo Nice! I'd love to see it when you're done! If you need someone to test, please let me know.
2022-08-22T12:45:33Z #raku <ab5tract> tonyo I meant that it seemed like all I had to do was call fez from within a checked out repo. Meaning that if I checked out a repo that wasn't already on fez, I could "claim" it 16:49
p6steve liking this from python comparisons... for '2.54 centimeter to inch'.split('to') { say (♎️"$^a").in: $^b } #1inch 18:17
(modesty requires to say that I'm surprised it works so well!_ 18:18
)
tonyo m: '2.54 centimeter to inch'.split('to') { say (♎️"$^a").in: $^b } 18:19
camelia ===SORRY!=== Error while compiling <tmp>
Unexpected block in infix position (missing statement control word before the expression?)
at <tmp>:1
------> '2.54 centimeter to inch'.split('to')⏏ { say (♎️"$^a").in: $^b }
expe…
aye hello hello 20:15
guifa waves hi 20:31
[Coke] . 21:16
quibono: if you're looking for backend work (deep in review), I would recommend working on a .NET backend to nqp 21:19
I have stared at that todo for a bit and not been able to start peeling it away. 21:20