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.
00:03 ab5tract left 00:46 NemokoschKiwi left
jaguart tried to install Comma IDE - not a great experience so far. I'm used to windows, so when it asked for a project I expected the dialog to let me select a folder... instead of expanding, it seleted the root folder of a 4TB disk with about 2tb of data - which Comma seems to want to index... 01:17
03:05 Kaipei left
rf Is this on MacOS? 03:12
03:15 rf left, rf joined 03:57 rf left 05:26 Kaipei joined 05:30 Kaipei left 05:44 Heptite left 07:26 Heptite joined 08:49 discord-raku-bot left, discord-raku-bot joined 09:59 Heptite left 10:49 discord-raku-bot left, discord-raku-bot joined 12:36 Nahita joined 13:43 Nahita left 15:06 Heptite joined 16:03 jgaz joined 16:42 rf joined
rf What's the difference between unit module and unit class? 16:45
Nemokosch shouldn't it be the same difference as between a module and a class? 16:46
rf Maybe I'm just unsure about what its unit is really doing 16:49
Nahita it relieves you from indentation :\)
rf I see, makes sense
Nahita well curly braces
16:52 discord-raku-bot left, discord-raku-bot joined 16:56 discord-raku-bot left, discord-raku-bot joined
rf So how would I nicely define a class then, if say my zef name is: ABC::Class, and I want to define Class wouldn't it always be ABC::Class::Class? 17:27
18:26 jgaz left
p6steve rf: I vaguely remember having had this same problem ... for example, I ended up using 18:55
```unit module Physics::Measure:ver<1.0.6>:auth<Steve Roe (p6steve@furnival.net)>;```
```class Measure is export { ... }```
and that sits in the module dir with path ```/lib/Physics/Measure.rakumod``` 18:56
rf Uh I think I found a nicer way. In your case that would make the type Physics::Measure::Measure; 19:01
What you can do is either define the class as class Physics::Measure is export { ... } or unit class Physics::Measure; and drop the class definition completely 19:02
I think... :)
p6steve ah - yes, I see that I have the same issue as you 20:19
I have taken a look at the Cro::HTTP and App:Rak sources and I think that I have been too worried about having a unit module ... first line to provide auth and ver info 20:20
looks like this is unnecessary providing that you properly populate your META6.json ... 20:24
then the trick is to either locate a big class as it's own 'class' package, or to use 'module' higher up in the tree to collect a bunch of small classes that are then used with 'use module::class;' 20:27
rf Yeah 20:34
21:40 ab5tract joined 22:18 Guest67 joined 22:19 Guest67 left 22:21 ab5tract left 22:36 ab5tract joined 22:49 discord-raku-bot left 22:50 discord-raku-bot joined 23:03 ab5tract left 23:31 loken joined 23:37 loken left 23:49 discord-raku-bot left 23:50 discord-raku-bot joined