🦋 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 6 September 2022.
SmokeMachine lizmat: great! Thanks! 00:12
tbrowder ref BEGIN i'm gonna quote what's in the docs. it's fairly clear, and i add the note about vars being used or defined having to be declared before the BEGIN 02:21
timo: good point about precompilation...moritz corrected an early misadventure of mine years ago regarding that. and i better check that now! 02:25
coleman What is a good way to initialize a filepath variable if it exists, otherwise use a default value? 03:53
I have this:
my $css = do given "css/style.css" { when .IO.e { "other.css" } }
but I'm not thrilled about it
actually that logic is backwards 03:59
ugexe my $file = <file1.txt file2.txt>.first(*.IO.e) // "file3.txt 04:01
coleman gorgeous, thank you 04:06
librasteve_ o/ 19:22
librasteve_ dot product for Physics::Measures www.irccloud.com/pastebin/uDgZDgDY 19:23
lizmat librasteve_: cool! 19:28
fwiw, I think you can do: 19:29
my constant &infix:<·> = &dot-product;
*after* the dot-product definition 19:30
removes one level of indirection
antononcube @librasteve Interesting GitHub issue!! 19:33
[Coke] huh. at some point App::Uni started treating "-n dead" as Error encoding UTF-8 string: could not encode Unicode Surrogate codepoint 57005 (0xDEAD) instead of searching for the text 'dead' in the codepoint descriptions. 20:12
(maybe it always did because "dead" is also hex.) 20:13
[Coke] ... 'abc' also dies complaining about 0xDABC. weird. will have to dig. 20:14
what's the process for deleting a package off cpan for raku? 20:15
(App::Uni is on zef these days)
lizmat [Coke]: you go to PAUSE and mark the appropriate files for deletion 20:19
and then a few days later, they'll get actually deleted 20:20
fwiw, they will continue to exist in the REA, in case you wonder :-)
[Coke] If someone wants to use a crappy old version, that's their problem. :) 20:21
ugh, pause still doesn't have html login support. :)
lizmat ? 20:22
strange, my browser seems to remember? 20:23
No files found in authors/id/E/EL/ELIZABETH hehe
[Coke] er, html form. 20:24
so I had to cut and paste from my password manager instead of just clicking.
lizmat ah
[Coke] the delete UI on pause - I selected everything, clicked delete, looked like a quick refresh... no indication it was done. 20:25
ah, you get an email. :) 20:26
[Coke] zzz 20:27
lizmat they're marked for deletion, you can unmark them if you did an oopsie 20:30
roguerakudev lizmat - re "Please also send an easy and fast way to contact you to liz at raku.rocks", I assume that's an email address? 21:25
lizmat yes
roguerakudev awesome, will do
Also, could an admin set me up with a Raku Wordpress account as described in CONTRIBUTING.md? I have to be away from hoe for a while so I want to make sure everything is good to go 21:33
home*
I'm "landyacht" on github if that matters 21:34
librasteve I volunteer for admin duty on wordpress.com/view/raku-advent.blog if an opening appears 21:39
since I love WordPress™ so much 21:40
roguerakudev oof, the conversion tool does not like references [^1] or monospace nested inside a link 21:41
okay, I cleaned it up manually so I've got some clean HTML ready - github.com/landyacht/raku-advent/b.../cwa.html. I should be back before my December 7th slot, but just in case 22:06
librasteve 👍 22:16