🦋 Welcome to the MAIN() IRC channel of the Raku Programming Language (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. If you're a beginner, check out the #raku-beginner channel!
Set by lizmat on 16 August 2021.
lizmat clickbaits rakudoweekly.blog/2021/08/23/2021-34-stabler/ 08:35
keutoi Is there a reason this docs.raku.org/type/Metamodel::Documenting kind of documentation is not used within rakudo impelementation? 08:40
lizmat keutoi ?? 08:41
s/rakudo/raku ?
keutoi m: say 1.WHY 08:42
camelia No documentation available for type 'Int'. Perhaps it can be found at
docs.raku.org/type/Int
»
lizmat Ah, that!
that kind of documentation is not used in the setting because of bootstrapping issues 08:43
well, historically anyway
keutoi So using it within external modules is encouraged?
lizmat yes! 08:44
keutoi lizmat: Thank you.
tib Hello I'm organizing a free Perl and Raku miniconf (online) in november, this is the first annoucement and call for papers: dev.to/thibaultduponchelle/the-eph...iconf-292j feel free to contact me for joining the speaker dark side 12:01
lizmat . 12:04
tbrowder m: my $a='hi'; say qq:to/H/;<a>$a</a>H 12:31
camelia 5===SORRY!5=== Error while compiling <tmp>
Two terms in a row
at <tmp>:1
------> 3my $a='hi'; say qq:to/H/;<a>7⏏5$a</a>H
expecting any of:
infix
infix stopper
statement end
statement modifi…
tbrowder hi, folks 12:33
tbrowder i found what is to me a trap while porting some old perl code. i was trying to demo it above 12:36
the docs don't say a lot about qq quotes which i use a lot for file generation. 12:37
Geth ecosystem/api-perspective-repo-rename: bf0b464d3e | (Kane Valentine)++ (committed using GitHub Web editor) | META.list
Update META.list
Geth ecosystem: kawaii++ created pull request #595:
Rename API::Perspective repo
12:37
tbrowder the code above works great in perl but the $a needs to be inside curly braces. the docs don't mention the simple case above but show various similar situations that don't require the braces 12:38
*needs to be inside curly braces in raku 12:39
tbrowder gonna try to show a qq again... 12:40
m: say qq:to/H/;foo\nH 12:41
camelia 5===SORRY!5=== Error while compiling <tmp>
Confused
at <tmp>:1
------> 3say qq:to/H/;foo\7⏏5nH
tbrowder i think i need the tiny newline but don't know how to enter it 12:44
tbrowder anyway, the error mentions strings can't be indexed, probably due to the left angle bracket immediately following the $a in the case above. i'll file a doc issue 13:12
pyl3r Hello, I've been having problems installing zef, anyone else facing the same problems? 15:02
jdv it'd be hard to say since these "problems" are as of yet unknown to anyone buu you:) 15:14
*but
mjgardner Follow-up from last week's blog: Using a more purpose-made module to shorten a Perl & Raku script phoenixtrap.com/2021/08/24/frenemi...ule-makes/ 15:49
pyl3r www.reddit.com/r/rakulang/comments...;context=3 16:00
this is the reddit post I made about it
Geth ecosystem: bf0b464d3e | (Kane Valentine)++ (committed using GitHub Web editor) | META.list
Update META.list
16:19
ecosystem: 3242d84c54 | Altai-man++ (committed using GitHub Web editor) | META.list
Merge pull request #595 from Raku/api-perspective-repo-rename

Rename API::Perspective repo
Xliff Is there any way to get the implementing class from a method? 16:55
Especially if the method belongs to a role?
m: role A { method this-one { 1; }; }; class B does A { }; A.^lookup('this-one').package.^name.say 16:56
camelia A
Xliff I want a way that will report "B" 16:57
Especially if I can get the type object as opposed to the string.
Above example isn't quite true to form. 16:58
m: role A { method this-one { 1; }; }; class B does A { }; my &m = ('this-one'); &m.package.^name.say
camelia Type check failed in assignment to &m; expected Callable but got Str ("this-one")
in block <unit> at <tmp> line 1
Xliff m: role A { method this-one { 1; }; }; class B does A { }; my &m = A.^lookup('this-one'); &m.package.^name.say
camelia A
Xliff m: role A { method this-one { 1; }; }; class B does A { }; my &m = B.^lookup('this-one'); &m.package.^name.say 16:59
camelia A
Xliff I only have access to &m in my situation.
gfldex Raku is awesome, as my next blogpost will show. :D 18:31
gfldex lolibloggedalittle: gfldex.wordpress.com/2021/08/24/dy...claration/ 18:58
Geth doc: tbrowder++ created pull request #3941:
Expand info on Heredocs
19:20
doc/master: 4 commits pushed by Coke++ 19:24