🦋 Welcome to the MAIN() IRC channel of the Raku Programming Language (raku.org). *** CONFERENCE TIME conf.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 still being worked out
Set by lizmat on 6 August 2021.
[Coke] out of curiosity, just checked how many lines of src/ are still blamed on me. 14 - 9 of them are blanks, 1 is a #comment, 3 others appear to be part of a multi-line comment, and the one line of real code... a whitespace change. :) 01:32
Util timo: I am glad, and thnak you for telling me! 04:28
s/thnak/thank/
Xliff Does anyone know how HOW types are exposed in Raku? 04:53
Perl6::Metamodel::CoercionHOW is NOT something I can use, although it is something I can access.
moon-child does raku have have an equivalent to cl's before/after methods? 04:56
timo i dont know anything about cl really, but perhaps the wrap method on a Routine instance is what youre looking for? 05:19
moon-child hmm, somewhat 05:22
ix.io/3vkO/perl6 I want to wrap only the second multi candidate
(which sounds like a very strange thing to do; but really it's _adding_ a multi candidate which automatically does nextsame once it's done. That would be a before method in cl. There're also after methods, which run after primary dispatch (as the name suggests), but whose return values are ignored. 'wrap' seems more like 'around' but inhibits dispatch rather than augmenting it) 05:26
jester IDENTIFY Jester01 06:05
moon-child whelp, uhm 06:08
jester: you might want to change your password
tellable6 moon-child, I'll pass your message to jester
moon-child (side-note, the fact that that can happen is imo a flaw in the irc protocol. Yes there's sasl, but it's not mandatory sooo verges on useless) 06:12
CIAvash moon-child: depends on the function and its signature, but you can use `proto` like: `proto f ($x?) { if $x { say 'before'; } {*} }` 08:20
CIAvash or if you want to be more specific: `proto f (|c) {if c ~~ :($) {say 'before ', c[0];}; {*}};` 08:46
CIAvash you can do the same thing with `wrap`: `&f.wrap: -> |c { say 'wrapper' if c ~~ :($); callsame }` 09:22
CIAvash Seems like only yesterday when TimToady was making fun of me when I was playing with `wrap` 🤣 logs.liz.nl/perl6/2015-07-04.html#19:39-0001 10:02
Anton Antonov Hi! Is there a way to suppress messages issued with `note` ? Messages, issued with `warn` can be suppressed with `quietly`. 11:17
Altai-man `note` writes to stderr, so technically you can assign $*ERR to something else maybe? 11:57
CIAvash there is `silently` module raku.land/cpan:ELIZABETH/silently 12:05
Altai-man m: my $err = $*ERR; $*ERR = IO::Handle.new; note "hehe"; $*ERR = $err; note "fufu" 12:05
camelia No exception handler located for catch
at SETTING::src/core.c/Exception.pm6:527 (/home/camelia/rakudo-m-inst-2/share/perl6/runtime/CORE.c.setting.moarvm:print_exception)
from SETTING::src/core.c/Exception.pm6:583 (/home/camelia/rakudo-m-inst…
Altai-man the error is LTA
Anton Antonov Thank you @Altai-man -- I will study and experiment 12:14
CIAvash I've been seeing a lot of bad errors recently, they were too much to report, but I probably should have done so 12:15
Anton Antonov @CIAvash -- I will try `silently`! Thanks!.
nine At my level of Raku prowress I probably shouldn't enjoy such in-depth explanations of solutions of the weekly challenge so much. But I certainly do! 19:03
MasterDuke it's a big enough language that exploring all the different ways of doing all the individual steps is fascinating 19:04
nine Ha! Learning the difference between *@, **@ and +@ is what I put off for years, resulting in github.com/Raku/roast/commit/6b7c4...0910409aea being so late to the party 19:27