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. |
|||
roguerakudev | you don't need the redundancy between unit module and class - right now your class is living at `MothTrap::Exceptions::NotFoundException::NotFoundException`` | 01:16 | |
01:26
Chanakan left
01:29
Chanakan joined
|
|||
antononcube | @briandouglas_71953 How related that package is to the "moth joke" of Norm McDonald? | 01:47 | |
06:23
CIAvash joined
08:01
dakkar joined
|
|||
briandouglas_71953 | Haha, no but I just watched it 😄 | 08:12 | |
Thanks for this. So what I am understanding is that module symbols can't reused. I was trying to use it like a PHP namespace. But it looks like I can't declare multiple files with unit module MothTrap::Exception; for example. | 08:14 | ||
I was thinking I could group multiple files under module MothTrap::Exception; and access the classes from those files like so: module MothTrap::Exception::MyClass; | 08:15 | ||
I'm still struggling to get my head around how they are resolving. It's not clear to me at all. Which is surprising as up untill this I've not had an issue getting my head around any language features. | 08:16 | ||
08:55
CIAvash left
09:23
teatime left
12:33
CIAvash joined
12:53
CIAvash left
|
|||
roguerakudev | Yeah, I also had a lot of trouble with the namespace/module stuff, and honestly still only understand it well enough to get by 🙂 | 13:40 | |
antononcube | There should be a dedicated LLM persona for that. | 13:42 | |
roguerakudev | Oh sorry, this is also just flat out wrong. | 13:43 | |
antononcube | I might make some "Raku school" LLM personas for TRC-2024. (If it is going to be held.) | ||
roguerakudev | in your case I think it's not working because you're missing is export on your exception classes | ||
lizmat | antononcube a full-blown TRC-2024 will not be organized | 13:47 | |
antononcube | @lizmat Good to know! | 13:48 | |
lizmat | however, rumour has it that finanalyst is thinking of organizing a Raku Developer Summit in Cardiff | ||
two days after the London Perl and Raku Workshop | |||
13:48
jgaz joined
|
|||
antononcube | Is it going to be (partly) virtual? | 13:49 | |
lizmat | so that'd be 28/29 October | ||
I doubt it: it will be closer to a Hackathon than to a real Conference | |||
a requirement to attend would be that you have at least one module in the Raku ecosystem | 13:50 | ||
anyways, if you were planning to go to the LPRW, you could sleep late into Sunday, catch a ~ 1 hour train to Cardiff and be in time for the pre-Summit social | 13:51 | ||
antononcube | ✍️ | 13:54 | |
15:36
MasterDuke left
|
|||
lizmat | and yet another Rakudo Weekly News hits the Net: rakudoweekly.blog/2024/07/29/2024-...drianally/ | 16:30 | |
16:39
dakkar left
|
|||
antononcube | How to load a module "B", so its exported symbols be available in current namespace when a certain other module "A" is loaded? The module "A" depends on module "B". | 16:39 | |
To be clear, if "B" exports the sub/symbol &f , I want to be able to do this: raku use A; say &f(3); | 16:40 | ||
Is this something I can do with phasers like BEGIN or INIT / | |||
lizmat | no, but you can with an EXPORT sub: docs.raku.org/syntax/sub%20EXPORT | 16:42 | |
sub EXPORT { Map.new: '&f' => &f } | 16:43 | ||
or give it whatever other name you want | 16:44 | ||
antononcube | Agh, yes, EXPORT I read a few times that page (or versions of it), but did not occur to me that it can be used... | 16:45 | |
18:09
Chanakan left
19:12
teatime joined
20:19
Chanakan joined
|
|||
librasteve | is definitely up for LPRW London and the Cardiff Raku Developer Summit … I live in Reading so on the line in between and happy to help if folk have logistics questions | 20:35 | |
antononcube | @librasteve So, do you or do you not accept overnight guests? | 20:37 | |
(Feel free not to answer -- that is too much putting "on the spot"...) |