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:00 archenoth left 00:02 archenoth joined 00:21 frost joined 02:25 Kaiepi left 02:57 discord-raku-bot left, discord-raku-bot joined 03:31 frost left 04:02 kjp left, discord-raku-bot left, discord-raku-bot joined 04:04 kjp joined
stevied can't figure this error out. got this: 07:20
`like 'blah', m:s/0 '-' Parent menu/, 'handles parent menu';`
it's a test
I get this nasty error:
```
Use of uninitialized value of type Any in string context.
Methods .^name, .raku, .gist, or .say can be used to stringify it to something meaningful.
in block <unit> at /Users/stevedondley/git_repos/raku/modules/steve/Menu-Simple/t/02-sorting.rakutest line 22
Cannot resolve caller like(Str:D, Nil:U, Str:D); none of these signatures matches:
(Str(Any) $got, Regex:D $expected, $desc = Code.new)
in block <unit> at /Users/stevedondley/git_repos/raku/modules/steve/Menu-Simple/t/02-sorting.rakutest line 22
```
Nemokosch you match against $_ actually, I suppose 07:22
stevied why is my regex a Nil:U
Nemokosch because it's not a regex
stevied don't get this error if I take out the `m:s` modifier 07:23
Nemokosch it's a failed match call
YES, exactly
the m:s modifier makes it a call, rather than a regex 07:24
and that call fails
= first error
you get Nil from it
stevied I see
Nemokosch = second error
stevied so how do I fix?
Nemokosch why did you want to put m:s there in the first place?
stevied so I can just type in spaces
easier
Nemokosch what about rx:s? 07:25
stevied ok, that did it 07:26
I assumed the 'm' stood for modifier but I guess it stands for match
thanks!
Nemokosch it does stand for match 07:27
stevied yeah, i thought it was acting as some kind of delimiter to start the modifer string 07:28
Nemokosch yeah nah 07:30
that's specifically for matching 07:31
docs.raku.org/language/regexes#Ano...ion_syntax 07:32
> Secondly, the rx form allows you to insert regex adverbs between rx and the opening delimiter to modify the definition of the entire regex. This is equivalent to inserting the adverb at the beginning of the regex, but may be clearer:
so supposedly you could do /:s 0 '-' Parent menu/ as well?
but yeah perhaps rx:s does look better
stevied huh 07:33
regexes and oo trip me up the most. they are similar to Perl/Moose but very different. 07:38
Nemokosch I don't use oo so that's one down 😄 07:45
stevied so what's the process for getting a pull request approved in a community module? I got this one pending: github.com/raku-community-modules/...put/pull/8
who else reviews it?
07:46 Kaiepi joined 07:57 frost joined 08:00 dakkar joined 10:00 sienet_ja_LSD[m] left 10:01 uzl[m] left, CIAvash left 10:25 uzl[m] joined 10:29 uzl[m] left, RakuIRCLogger left 10:34 CIAvash joined 11:07 uzl[m] joined, sienet_ja_LSD[m] joined 11:52 jaguart joined 11:58 lizmat_ joined 12:02 lizmat left 12:14 lizmat_ is now known as lizmat 12:22 jgaz joined 13:35 frost left 13:50 jgaz left 13:57 jgaz joined 16:20 jgaz left 16:42 dakkar left 17:17 jaguart left 18:06 discord-raku-bot left, discord-raku-bot joined 20:01 m_athias left, destroycomputer- left, samebchase left, SmokeMachine left, aqua1 left, thowe left, discord-raku-bot left, lizmat left, sienet_ja_LSD[m] left, deadmarshal left, avuserow left, codesections left, gfldex left, Kaiepi left, archenoth left, Util left, elcaro left, kjp left, zmoment_ left, sivoais left, tbrowder left 20:14 discord-raku-bot joined, lizmat joined, sienet_ja_LSD[m] joined, Kaiepi joined, kjp joined, archenoth joined, avuserow joined, deadmarshal joined, gfldex joined, codesections joined, SmokeMachine joined, aqua1 joined, m_athias joined, Util joined, zmoment_ joined, sivoais joined, destroycomputer- joined, samebchase joined, thowe joined, tbrowder joined, elcaro joined