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:50 theesm left 00:52 theesm joined 01:24 jgaz joined 02:11 teatwo joined 02:12 teatwo left, teatwo joined 02:13 jgaz left 02:14 tea3po left 02:24 Heptite joined 04:07 Heptite left 06:58 kjp left 07:01 kjp joined
snufkin `my %animals; while True { my $name = prompt "What is your animal called? "; exit unless $name; my $type = prompt "What kind of animal is $name? "; exit unless $type; if ($name and $type) { %animals.push($name => $type); } else { last; } } say "These are my favourite animals: "; for %animals -> $animal { say $animal.key ~ " (" ~ $animal.value ~")"; } I'm a 07:57
beginner to raku, I'm expecting the code after the while to run if the last in the else is hit in the while loop. However it just seems to exit the program. Any tips would be appreciated, tried also using return.
lakmatiol the exit unless $type would be the thing exiting the program, no? 08:15
snufkin What an idiot. Apologies for wasting everyone's time... 08:17
Thanks
09:39 lizmat_ joined 09:43 lizmat left
lakmatiol no need to be so harsh, we're here by choice. 09:45
09:47 lizmat_ left, lizmat joined
Anton Antonov @lakmatiol Most of us. I was forced to be her by the historical necessity. 11:27
lizmat here here ! :-) 11:32
Anton Antonov 🙂 🙂 11:58
Freudian slips by me do not count, because English is my third language... 11:59
lizmat I guess I have an advantage then, as it is only my second 12:00
Anton Antonov @lizmat Is your native language Germanic? (That is another element in my excuse ... ) 12:02
lizmat I guess Dutch is, although not many Dutch people will admit to that :-) 12:03
Anton Antonov Well, English is "fringe" Germanic. But my hearing (parsing) of English rapidly improved after I started studying German. 12:04
Which package / module should I use for encoding HTTP(s) requests : "URI" or "URI::Encode" ? (Say, in "WWW::OpenAI"...) 12:11
lizmat I truly have no idea
Anton Antonov Damn -- I have to experiment... 🙂 12:13
@lizmat Since you are here I am curious -- are there any Perl-to-Raku (re-)programmers for hire? Where and how can I find them? 12:22
lizmat well, I don't know about anybody else, but I have done quite a lot of that (many of the modules in raku.land/tags/cpan5) 12:24
and I could be for hire :-) 12:25
Anton Antonov @lizmat Great! I will make a list (with links and explanations) and contact you. (This weekend.) 12:29
lizmat looking forward to it... although I won't be much online on Sun 12:30
Anton Antonov I will keep it mind.
13:33 Heptite joined 14:10 tea3po joined 14:11 tea3po left, tea3po joined 14:14 teatwo left 14:59 Heptite left 15:00 Heptite joined 15:03 Heptite left 15:11 Heptite joined 17:36 jgaz joined 17:42 jgaz left
Mediocre cdn.discordapp.com/attachments/109.../image.png my first raku program 🥹 19:06
19:18 jgaz joined
chicken good job 19:23
Mediocre thank you 19:25
20:27 jgaz left
lucs ^Z ? Hmm... 20:33
20:34 jgaz joined
Nemokosch ctrl+z, right? 20:34
20:37 raiph joined 20:45 jgaz left
lucs I'd have though ^D. 20:57
*thought
^Z: suspend (resume with 'fg'); ^D: end of input stream (so, quits program) 20:59
Nemokosch but that was Windows if I'm not wrong
lucs Oooh, Windows. 21:00
Nemokosch and Windows likes to be weird
lucs Okay, carry on 🙂
23:28 raiph left