🦋 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. |
|||
00:02
reportable6 left
00:17
linkable6 joined
00:33
cognominal_ joined
00:35
cognominal left
00:39
tejr left
00:47
tejr joined
01:04
reportable6 joined
01:29
moon-child left
|
|||
[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 | |
01:32
discord-raku-bot left
01:33
moon-child joined
01:34
discord-raku-bot joined
01:44
mamitchell joined
01:45
mamitchell left
02:05
Manifest0 left,
Manifest0 joined
02:40
cbk left
03:29
perryprog_ is now known as perryprog
04:26
Xliff joined
|
|||
Util | timo: I am glad, and thnak you for telling me! | 04:28 | |
s/thnak/thank/ | |||
04:46
gordonfish- is now known as gordonfish
|
|||
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 | |
05:07
Doc_Holliwood left
|
|||
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 | ||
06:02
reportable6 left
06:05
jester joined,
reportable6 joined
|
|||
jester | IDENTIFY Jester01 | 06:05 | |
06:06
jester left
|
|||
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 | |
06:32
Altai-man left
07:32
evalable6 left,
linkable6 left
07:33
evalable6 joined,
Xliff left
07:34
linkable6 joined
|
|||
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 | |
08:29
slu joined
08:34
Doc_Holliwood joined
|
|||
CIAvash | or if you want to be more specific: `proto f (|c) {if c ~~ :($) {say 'before ', c[0];}; {*}};` | 08:46 | |
09:07
El_Che left
09:12
El_Che joined
09:16
frost joined
|
|||
CIAvash | you can do the same thing with `wrap`: `&f.wrap: -> |c { say 'wrapper' if c ~~ :($); callsame }` | 09:22 | |
09:36
lichtkind joined
09:44
lizmat_ joined
09:46
DarthGandalf left
09:47
lizmat left,
elcaro left,
DarthGandalf joined
09:49
slu left
09:50
leont left,
sono left
09:52
PotatoGim left
09:53
kawaii_ left
09:54
moon-child left
09:56
tinita left
10:00
slu joined,
casaca left,
kawaii_ joined
10:01
leont joined,
perlmaros left
10:02
PotatoGim joined,
dustinm` left
|
|||
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 | |
10:05
perlmaros joined,
a3r0 left,
moon-child joined,
Sgeo left
10:06
avar left
10:07
a3r0 joined
10:08
pat_js left
10:09
pat_js joined
10:10
PotatoGim left,
dustinm` joined
10:12
elcaro joined,
tinita joined
10:13
jdv left
10:14
jdv joined,
PotatoGim joined
10:16
Altai-man joined
10:22
casaca joined
10:23
PotatoGim left,
avar joined
10:24
PotatoGim joined
10:39
MoC joined
|
|||
Anton Antonov | Hi! Is there a way to suppress messages issued with `note` ? Messages, issued with `warn` can be suppressed with `quietly`. | 11:17 | |
11:17
Doc_Holliwood left
|
|||
Altai-man | `note` writes to stderr, so technically you can assign $*ERR to something else maybe? | 11:57 | |
12:02
reportable6 left
12:04
reportable6 joined
|
|||
CIAvash | there is `silently` module raku.land/cpan:ELIZABETH/silently | 12:05 | |
12:05
MoC left
|
|||
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!. | ||
12:20
Doc_Holliwood joined
13:03
stoned75_ left
13:05
sanikovich joined,
stoned75 joined
13:09
sanikovich left
13:11
sanikovich joined
13:36
Doc_Holliwood left
13:38
Doc_Holliwood joined
13:55
Doc_Holliwood left
14:22
frost left
14:24
Doc_Holliwood joined
14:28
Doc_Holliwould joined
14:31
Doc_Holliwood left
16:07
jess left
17:03
justsomeguy joined
17:09
justsomeguy left
17:38
Sgeo joined
18:02
reportable6 left
18:12
Doc_Holliwould left
18:21
Doc_Holliwould joined
18:47
pjlsergeant left
18:48
kawaii_ left
18:51
kawaii_ joined
18:52
zostay left,
pjlsergeant joined
18:53
zostay joined
|
|||
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 | |
19:05
reportable6 joined
19:24
sanikovich left
|
|||
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 | |
20:21
sono joined
21:21
linkable6 left,
evalable6 left
21:22
linkable6 joined
21:24
evalable6 joined
21:25
Doc_Holliwould left
22:16
lucerne left,
lucerne joined
23:16
releasable6 left,
committable6 left,
linkable6 left,
evalable6 left,
bisectable6 left,
statisfiable6 left,
unicodable6 left,
coverable6 left,
notable6 left,
sourceable6 left,
nativecallable6 left,
squashable6 left,
benchable6 left,
quotable6 left,
bloatable6 left,
reportable6 left,
tellable6 left,
shareable6 left,
greppable6 left
23:17
bloatable6 joined,
notable6 joined
23:18
coverable6 joined,
linkable6 joined,
bisectable6 joined
23:19
evalable6 joined,
benchable6 joined
23:25
tejr left
23:26
tejr joined
23:42
lichtkind left
|