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.
01:47 DarthGandalf left 02:19 DarthGandalf joined 08:36 Chanakan left 08:39 Chanakan joined
antononcube Say a sub is provied by a package. After loading that package in the global namespace, is it possible to change the default value an argument of that sub? 13:01
For example, Mathematica/WL has the function SetOptions that allows that. (I try to quit thinking in WL terms when doing Raku, but without much success..,) 13:02
lizmat antononcube maybe Routine.wrap is what you're looking for? docs.raku.org/routine/wrap 13:08
antononcube @lizmat Yes, that routine seems to apply. (And yes, I have seen it and used before, but WL-thinking, blah, blah...) 13:12
ab5tract assuming might also be a fit, but I haven’t used it much 15:51
lizmat assuming is a hornet's nest :-( 15:56
18:30 deadmarshal_ left 19:07 deadmarshal_ joined
rcmlz why? 20:28
lizmat it's a twisty maze of code building source for an EVAL 20:30
at least, the last time I looked :-)
afk& 20:31
rcmlz I thought it is currying, standard tool for/off functional folks. Not? 20:34
When I tried it, it worked fine (for my problem). 20:35
ab5tract rcmlz: Yeah, I think it's plenty safe for general use cases 21:00
Plenty of roast test cases for it, and the ones we expect to pass already do so 21:01
lizmat #4598 #4553 #3869 #2599 #1370 22:17
ab5tract makes a note to check whether any of these are #FixedInRakuAST :) 22:29