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.
disbot3 <jubilatious1_98524> m: my $a = 42 but role MyRole { method tag { "the_answer" } }; say $a.tag => $a; 00:04
<Raku eval> the_answer => 42
00:18 deoac joined 01:15 deoac left
SmokeMachine m: say 'Life, the Universe and Everything'.WHY 01:17
camelia 42
02:24 kjp left 02:26 kjp joined
disbot3 <librasteve> @stu002 that looks very interesting … there are several areas where raku was deigned (imo) to be compatible with math concepts … for example the Int and Real types 06:12
<librasteve> one starting point is the type graphs docs.raku.org/type/Real#typegraphrelations 06:13
<stu002> The use of rationals for fractions and decimals fits very well with the learning exercises I’d like to try
<librasteve> i think that jubilations example should be a good mechanism 06:14
<stu002> Should I follow the docs at docs.raku.org/reference or one of the published books?
<librasteve> yes … there is good partitioning between rationals Rat and irrationals Num and a set of stickiness rules so Rat op Num => Num for example 06:16
<librasteve> i like the raku.guide to get started… quick conversion from another language, then make sure you read the docs.raku.org/language/objects 06:18
<librasteve> docs.raku.org/language/numerics#Nu...ctiousness oh i should have said infectious ness 06:20
<stu002> Thanks!
<librasteve> final thought … rakujourney.wordpress.com/2023/11/...rithmetic/ this was my foray into pushing raku Ranges a bit further to Intervals … this main point here is please do consider making a raku module of your work even as a stub for others to improve … the docs section on how to make a module is pretty easy and the App::Mi6 module helper is great 06:24
<librasteve> have fun! 06:25
<stu002> That’s neat. Raku seems like a very programmable programming language 06:26
07:51 dakkar joined
disbot3 <antononcube> ... by design, AFAIK. 13:18
<antononcube> And somewhat opinionated. (Meaning, a lot.) 13:19
16:35 dakkar left 17:19 deoac joined 17:21 deoac left 17:51 deoac joined 17:56 librasteve_ joined 18:07 poisNada joined
disbot3 <drudgesentinel> last time I was poking around with Raku, I feel I remember there were performance advantages to using module files. Is this still the case? 18:13
lizmat yes 18:37
18:46 Sussy joined, poisNada left 18:48 poisNada joined 18:51 poisNada left 18:53 Sussy left
librasteve_ rakudoweekly.blog/2025/07/14/2025-28/ 18:54
19:01 Some-body_ joined 19:02 DarthGandalf left 19:05 Some-body_ is now known as DarthGandalf
lizmat librasteve_++ 19:23
deoac I find the keyword 'but' misleading.  Wouldn't 'butalso' more clearly describe its effect? 19:27
lizmat not necessarily 19:39
m: my $a = 42 but False; say "never printed" if $a
camelia ( no output )
19:50 human-blip left 19:51 human-blip joined
disbot3 <librasteve> I would support a keyword butalso along with notonly 20:51
<librasteve> ttps://en.wikipedia.org/wiki/Not_Only..._But_Also
<librasteve> :-)
23:36 librasteve_ left