🦋 Welcome to the MAIN() IRC channel of the Raku Programming Language (raku.org). Log available at irclogs.raku.org/raku/live.html . If you're a beginner, you can also check out the #raku-beginner channel!
Set by lizmat on 6 September 2022.
Geth__ problem-solving: vrurg++ created pull request #356:
Resolution for #298
04:09
Geth__ ¦ doc: tbrowder self-assigned Show accessing class methods programmatically github.com/Raku/doc/issues/4163 12:38
Nemokosch tbrowder++ 12:44
lucs I got my custom USAGE() working in a module: gist.github.com/lucs/672fb1e434cf1...5fbb233a43 15:38
Geth doc: tbrowder++ created pull request #4164:
Add a practical example of class introspection
15:44
Nemokosch for those who are interested: there will be a documentation meeting in a bit less than an hour. I don't know how it will turn out yet but stay tuned in <#538420565980086273>-doc probably? 16:11
[Coke] #raku-doc, meet.jit.si/raku-docs 16:57
tellable6 2022-12-09T19:44:25Z #raku <tbrowder> [Coke] i get the aspell.t error on Ubuntu, too.
ugexe dunno if I'll make the RSC meeting today. bout to be stuck in traffic on my way home it looks like 19:28
lizmat ok, drive safely.... 19:29
guifa is wondering if he should split his advent calendar post into two, first discussing localized list formatting, and then discussing how to do it with RakuAST 21:09
any thoughts? 21:15
guifa pokes lizmat and MasterDuke in particular
Geth doc: 8f9298d551 | (Tom Browder)++ | doc/Language/classtut.pod6
Add a practical example of class introspection

The current docs do not show a practical, simple, and safe example of the use and implementaion of class introspection. This PR attempts to rectify the problem.
21:51
doc: 9c8feb43fe | (Tom Browder)++ | doc/Language/classtut.pod6
fix typo
linkable6 Link: docs.raku.org/language/classtut
doc: 848c19e48e | (Tom Browder)++ (committed using GitHub Web editor) | doc/Language/classtut.pod6
Merge pull request #4164 from tbrowder/introspect

Add a practical example of class introspection
tbrowder guifa: if they are the least bit complex, two articles may be better imho 21:56
especially with WP :-( 21:57
say the grinch
lizmat guifa: splitting sounds like a good idea :-) 22:07
gobberwartz yo guys 22:19
how do i get rid of the global?
www.paste.org/123593 22:20
lizmat actually, it's not a global, by a lexical with the compunit as a scope
*but 22:21
gobberwartz nitpicker =)
lizmat well, it *is* important, as it will not conflict with a lexical $register in another compilation unit (such as a module) 22:22
I see two ways:
gobberwartz it's global to the file and we learn that is bad
lizmat put the my and the execute multis in a block 22:23
gobberwartz that or recursion, yes
had a little trouble getting this to work, containers tripped me up 22:24
lizmat my constant &bar = do {
my $foo = 42;
sub bar() { $foo }
}
gobberwartz most of the time you don't have to think about them, unless you do, haha 22:25
lizmat gist.github.com/lizmat/d1efef0685d...afedf6cfa0 22:27
basically create the multis inside the block, and return the proto at the end, and put that in a lexical at compile time 22:28
hope that made sense
sleep& 22:29
gobberwartz killall sleep
Geth doc: 883d9feb6b | Coke++ | doc/Language/classtut.pod6
Make updated examples pass xt/
22:59
linkable6 Link: docs.raku.org/language/classtut