01:47 arkiuat left 01:51 arkiuat joined 01:56 arkiuat left 02:10 arkiuat joined 02:15 arkiuat left 02:29 arkiuat joined 02:38 arkiuat left 02:45 arkiuat joined 07:08 sibl joined
sibl is there a "prefered" way to `use` a local module in a project, so that wherever I start the script, the script can still find the module to import (which should always be in the same path with the script) ? 07:35
so basically another way than doing `use lib $*EXECUTABLE.dirname` 07:37
$*PROGRAM-NAME (my bad) 07:38
$*PROGRAM (jesus christ xD) other than `use lib $*PROGRAM.dirname` 07:39
08:04 sibl left
disbot6 <nhail> Is there a way to declare left or right associativity of an infix operator? 08:07
<librasteve> sibl: I would say the “preferred” way is to use raku -I. my script.raku, or if you have a hashbang and make you script executable, then place a use lib ‘.’; just below. 08:20
<librasteve> sibl: another way is to make your script a mini module (eg with App::Mi6), set up the dependency in META6.json and go zef install . —force-install each time … slower but it does all the build steps. 08:23
<librasteve> nHail: is assoc trait does this docs.raku.org/language/functions#Associativity 08:27
09:12 dakkar joined
lizmat sibl: a lot of test files in roast use something like "use lib $*PROGRAM.sibling("lib")" where the "lib" dir is in the same directory as the script 09:32
and any modules live in that "lib" dir 09:40
ab5tract neekotism: GTK::Simple is my mainstay for GUI stuff. It's relatively trivial to add anything that's missing, too 11:53
ie, part of the "simple" name comes from how simple it is to add or augment a widget
disbot6 <neekotism> Interesting. I'll use that then. Thank you for telling. 11:54
<antononcube> @nhail This should work: sub infix:<op>(\a, \b) is assoc<right> { ... } 13:48
16:29 librasteve_ joined
arkiuat sibl, I've sometimes used "use lib $?FILE.IO.parent(2).absolute" for something similar to that 17:14
that would be for scripts living in a bin directory parallel to a lib directory
I did not know about the .sibling method though! that's interesting 17:15
17:18 human-blip left 17:20 human-blip joined 17:50 dakkar left 20:13 Todd joined 20:21 Todd left 21:55 lizmat_ joined 21:58 lizmat left 23:03 lizmat_ left, lizmat joined 23:51 arkiuat left