🦋 Welcome to the MAIN() IRC channel of the Raku Programming Language (raku.org). This channel is logged for the purpose of keeping a history about its development | evalbot usage: 'm: say 3;' or /msg camelia m: ... | Log inspection is getting closer to beta. If you're a beginner, you can also check out the #raku-beginner channel!
Set by lizmat on 25 August 2021.
CIAvash What is the solution to MAIN sub accepting both `Bool` and `Int` when you have `sub MAIN (Int :$number)`? because Bool is Int. So it will only accept `--number` and `--number=1`, not `--number 1`, I can make a lone `--number` not work with a subset, but I can't get `--number 1` to work. 07:41
moon-child I don't think it's possible, happy to be proven wrong though 07:47
CIAvash OK, found a solution! `subset Number of Str where .Int.so` 08:05
moon-child what happens if you pass 0? 08:06
CIAvash good question, 0 doesn't work but in this case I need positive numbers 08:10
can make it work with zero with `subset Number of Str where !.defined || ($_ ne "" && .Int)` 08:15
Geth ecosystem: 10a8abdf2e | (Juan Julián Merelo Guervós)++ (committed using GitHub Web editor) | META.list
Freeze Terminal::Width
09:09
leont CIAvash: use Getopt::Long? 14:41
CIAvash leont: I was contributing a small feature to a module, so that was not an option(unless the author decides to do so for more things they are going to add) 14:43
ugexe github.com/ugexe/zef/blob/3edbbcf2...1251-L1253 14:53
fwiw thats how i handled that once
CIAvash I like MAIN, but this one bothered me and another thing was `:@list` parameter which doesn't allow passing only one argument, it has to be more than one. In the latter case I used Getopt::Long. There may have been some other annoyances too. 15:06
ugexe i thought :@list has worked with a single argument for awhile 15:10
m: sub MAIN(:@list) { say @list.raku }; @*ARGS = "--list=42"; 15:11
camelia [IntStr.new(42, "42")]
[Coke] ugexe++ 15:21
CIAvash hmm, good to know. from what I remember it didn't 4+ months ago, this is when I started using Getopt::Long, Oct 31, 2021: github.com/CIAvash/Sway-PreviewKey...50bbfb961c 15:25
[Coke] bisectable6: sub MAIN(:@list) { say @list.raku }; @*ARGS = "--list=42"; 15:34
bisectable6 [Coke], Will bisect the whole range automagically because no endpoints were provided, hang tight
[Coke], Output on all releases: gist.github.com/04e6c7b55e2daa5f86...2ba37c7e01 15:35
[Coke], Bisecting by exit code (old=2019.07.1 new=2019.11). Old exit code: 1
[Coke], bisect log: gist.github.com/4f2678ce2b7ad3d415...be55ca24e2
[Coke], (2019-11-01) github.com/rakudo/rakudo/commit/7c...3c0a81e7ad
[Coke], Bisecting by exit code (old=2019.03.1 new=2019.07.1). Old exit code: 2
[Coke], bisect log: gist.github.com/e100613707f0eb7fa7...be1b2be3d4 15:36
[Coke], (2019-03-26) github.com/rakudo/rakudo/commit/87...8106ce7dfa
[Coke], Bisecting by output (old=2018.09 new=2018.10) because on both starting points the exit code is 2
[Coke] .. that is a lot more output than I was expecting, apologies.
bisectable6 [Coke], bisect log: gist.github.com/1c17143325f7d7b627...6a8166166a
[Coke], (2018-10-12) github.com/rakudo/rakudo/commit/7d...7a69bc97af
[Coke], Output on all releases and bisected commits: gist.github.com/54da1c417672d519d5...043770406b
CIAvash That's weird, the bisect seems to confirm what ugexe said 15:54
[Coke] wasn't trying to correct you, just curious myself.
m: say Inf ~~ Numeric, NaN ~~ Numeric, 43 ~~ Numeric 15:55
camelia TrueTrueTrue
CIAvash yeah, I know. I just find it weird 15:56
Geth Raku-Steering-Council/main: 948f094265 | (Geoffrey Broadwell)++ | minutes/20220305.md
Add RSC meeting minutes for 2022-03-05
16:10
ugexe probably need to bisect using .perl instead of .raku 17:03
toddr I'm a rare poster here but wanted to share that the Perl and Raku Conference in Houston is coming up June 21-25. If anyone here can share with a wider Raku community, that would be appreciated. news.perlfoundation.org/post/tprc-...wsletter-2 There is also a link off the newsletter to join the mailing list if you prefer 19:09
moritz I tweeted about it with @raku_news 19:27
toddr thank you moritz !
[Coke] How do registration numbers look so far, toddr ? 19:29
I know we had some users who were very excited about an in person conference. 19:30
toddr actual registration is very light but that's normal this far out. 19:54
[Coke] fair enough. Thanks! 20:25
jdv toddr: that clashes with homebrew con so i cannot:( i enjoyed our dinner in frankfurt. think thats the last time i saw you. 20:56
toddr I remember apple wine in special glasses and then there's a blank spot in my memory... :P 21:23