🦋 Welcome to the MAIN() IRC channel of the Raku Programming Language (raku.org). This channel is logged for the purpose of keeping a history about its development | evalbot usage: 'm: say 3;' or /msg camelia m: ... | Logs can be inspected at colabti.org/irclogger/irclogger_log/raku
Set by lizmat on 1 May 2021.
00:02 reportable6 left 00:03 reportable6 joined 00:16 Merfont joined 00:17 Altai-man_ joined, Kaeipi left, sena_kun left, codesect` joined 00:18 codesections left 00:19 leah2 left 01:12 rindolf joined 01:32 kvw_5 left 01:34 kvw_5 joined 02:06 wingfold joined 02:07 wingfold left 02:56 DarthGandalf left, DarthGandalf joined 03:10 frost-lab joined 04:10 greppable6 left, shareable6 left, bloatable6 left, linkable6 left, statisfiable6 left, notable6 left, bisectable6 left, nativecallable6 left, quotable6 left, squashable6 left, reportable6 left, sourceable6 left, tellable6 left, coverable6 left, benchable6 left, evalable6 left, committable6 left, releasable6 left, unicodable6 left 04:11 squashable6 joined, statisfiable6 joined, releasable6 joined, quotable6 joined, linkable6 joined, sourceable6 joined, shareable6 joined, unicodable6 joined 04:12 bisectable6 joined, coverable6 joined, reportable6 joined, nativecallable6 joined, tellable6 joined, bloatable6 joined 04:13 benchable6 joined, committable6 joined, notable6 joined, evalable6 joined 04:14 greppable6 joined 05:01 wamba joined 05:03 brtastic joined 05:15 brtastic left 05:25 dustinm` left 05:29 dustinm` joined, wingfold joined 05:34 wingfold left 06:01 parabolize left 06:02 reportable6 left 06:05 reportable6 joined 06:17 frost-lab left 06:19 Sgeo left 06:25 domidumont joined 06:33 ecocode_ joined 06:36 ecocode_ left, ecocode_ joined 06:43 aluaces joined 06:49 stoned75 joined 06:53 frost-lab joined 07:05 stoned75 left 07:08 leah2 joined 07:11 wamba left 07:22 brtastic joined 07:30 ufobat joined 07:53 wamba joined 07:57 brtastic1 joined, brtastic left, brtastic1 is now known as brtastic 07:59 abraxxa joined 08:00 abraxxa left 08:02 abraxxa joined 08:08 abraxxa left 08:09 abraxxa joined 08:17 wamba left 08:32 pecastro joined 08:38 wamba joined 08:40 tejr left 08:42 tejr joined 08:45 frost-lab left 09:04 wamba left 09:09 wamba joined 09:30 MasterDuke left 09:32 MasterDuke joined 09:38 wamba left 10:19 wamba joined 10:28 wamba left 10:29 wamba joined 10:34 wamba left 10:35 wamba joined 11:08 frost-lab joined 11:57 dakkar joined 11:59 wamba left 12:02 reportable6 left 12:04 reportable6 joined 12:05 frost-lab left 13:07 Sgeo joined 13:12 wamba joined 13:23 |Sno| left 13:58 Merfont left 14:08 wamba left 14:16 QhpAptyj9hj0RQwM joined 14:17 b2gills left 14:24 Kaiepi joined
QhpAptyj9hj0RQwM Hey, I'm having trouble with specifying a user-defined character class that includes a predefined character class with no shorthand(alpha). Is there a way to do this? 14:27
14:30 wamba joined 14:36 ufobat_ joined, b2gills joined 14:39 ufobat left 14:43 |Sno| joined
MasterDuke QhpAptyj9hj0RQwM: i believe the only way to do that (if i'm thinking of the right thing) is with EVAL 14:44
14:45 jmerelo joined 14:47 parabolize joined
tonyo QhpAptyj9hj0RQwM: ean example? 14:56
QhpAptyj9hj0RQwM MasterDuke: Thanks, I'll look into this. 15:01
tonyo: Something like $string ~~ / <[ <alpha> @ ]> /; 15:04
This one won't work though, because < is interpreted as a literal. 15:05
15:06 wamba left 15:16 ecocode_ left
Geth doc: f15f479f97 | (JJ Merelo)++ | doc/Type/Junction.pod6
Minor change mainly to trigger tests
15:16
linkable6 Link: docs.raku.org/type/Junction
jmerelo releasable6:status 15:17
releasable6 jmerelo, Next release in ≈4 days and ≈3 hours. There are no known blockers. 0 out of 34 commits logged
jmerelo, Details: gist.github.com/4c6a74a9188eee9920...d2c4c02282
tonyo QhpAptyj9hj0RQwM: what's wrong with $str ~~ / (<alpha>|'@')+ / ? 15:30
15:37 brtastic1 joined 15:41 brtastic left 15:42 brtastic1 left
QhpAptyj9hj0RQwM tonyo: Nothing, but it doesn't feel elegant UwU 15:53
15:53 patrickb joined
ugexe / <+alpha +[@]> /; 15:58
tonyo QhpAptyj9hj0RQwM: try <+alpha+['@']>
QhpAptyj9hj0RQwM Thank you, senpai. 16:11
16:12 wamba joined 16:15 ufobat_ left 16:27 wamba left 16:29 wamba joined 16:31 wingfold joined 16:32 wingfold left 16:35 wamba left 16:38 dakkar left 16:47 hellonomad[m] joined, hellonomad[m] is now known as kiti_nomad[m] 16:50 wamba joined
lizmat and yet another Rakudo Weekly News hits the Net: rakudoweekly.blog/2021/05/17/2021-...nodelayed/ 16:57
Juerd :) 16:59
17:00 wamba left
lizmat afk for a bit& 17:00
17:04 brtastic joined 17:15 wamba joined, domidumont left 17:22 Doc_Holliwood joined
Doc_Holliwood what's the conditional method call operator again? 17:22
codesect` .?
Doc_Holliwood m: my $x; say $x.?sum 17:25
camelia Cannot resolve caller sum(Any:U: ); none of these signatures match:
(Any:D: *%_)
in block <unit> at <tmp> line 1
Doc_Holliwood m: my $x; say $x.//sum
camelia 5===SORRY!5=== Error while compiling <tmp>
Malformed postfix call
at <tmp>:1
------> 3my $x; say $x.7⏏5//sum
Doc_Holliwood m: my $x; say $x//.sum
camelia Cannot resolve caller sum(Any:U: ); none of these signatures match:
(Any:D: *%_)
in block <unit> at <tmp> line 1
Doc_Holliwood m: my $x; say $x and $x.sum or 0 17:26
camelia WARNINGS for <tmp>:
(Any)
Useless use of constant integer 0 in sink context (line 1)
Cannot resolve caller sum(Any:U: ); none of these signatures match:
(Any:D: *%_)
in block <unit> at <tmp> line 1
jmerelo m: my $x=3; say $x.?sum
camelia 3
Doc_Holliwood m: my $x; say ($x and $x.sum) or 0 17:27
camelia WARNINGS for <tmp>:
(Any)
Useless use of constant integer 0 in sink context (line 1)
codesect` oh, I misunderstood -- .? is conditional in the way JJ just showed, but not in the way you're looking for
m: my $x; say try $x.sum; # the only way I know 17:28
camelia Nil
Doc_Holliwood m: my $x; say try $x.sum || 0
camelia Nil
Doc_Holliwood m: my $x; say { try $x.sum } || 0
camelia -> ;; $_? is raw = OUTER::<$_> { #`(Block|52197816) ... }
Doc_Holliwood m: my $x; say { try $x.sum }->() || 0
camelia 5===SORRY!5=== Error while compiling <tmp>
Unsupported use of ->(), ->{} or ->[] as postfix dereferencer. In Raku
please use: .(), .[] or .{} to deref, or whitespace to delimit a pointy
block.
at <tmp>:1
------> 3my $x; say { try $x.su…
Doc_Holliwood m: my $x; say { try $x.sum }() || 0 17:29
camelia 0
codesect` m: my $x; say (try $x.sum) || 0
camelia 0
17:29 wamba1 joined
codesect` m: my $x; say (try $x.sum) // 0 # actually, 17:29
camelia 0
17:30 wamba left 17:32 wamba joined
Doc_Holliwood i don't know 17:32
guess i will stick with a ternary then 17:33
codesect` hmm? I thought ^^^^ was what you wanted?
jmerelo Actually, not very clear to me what's the use case here. 17:34
Shouldn't it avoid raising an exception? If it raises an exception if it does not exist, then what's the different WRT just calling it directly?
Ah, OK. You need to check against Nil docs.raku.org/language/operators#i...hodop_.%3F 17:35
17:35 wamba1 left
jmerelo m: my $x; say $x.?sum // "Nope" 17:36
camelia Cannot resolve caller sum(Any:U: ); none of these signatures match:
(Any:D: *%_)
in block <unit> at <tmp> line 1
jmerelo m: my $x; say $x.?sum() // "Nope"
camelia Cannot resolve caller sum(Any:U: ); none of these signatures match:
(Any:D: *%_)
in block <unit> at <tmp> line 1
Doc_Holliwood gist.github.com/holli-holzer/8a69c...2c8785026e
codesect` yeah, the version I showed with the parens works there 17:38
m: my $x; say (try $x.sum) // 0
camelia 0
jmerelo Doc_Holliwood: right. But the thing above should work, right? It's checking for definedness
Hum 17:39
Doc_Holliwood yes, but it's obscure and introduces another set of braces
jmerelo I think that the problem is that $x is not defined.
Doc_Holliwood i hate braces =)
jmerelo m: my $x = "Can't"; say $x.?sum() // "Nope" 17:40
camelia Cannot convert string to number: base-10 number must begin with valid digits or '.' in '3⏏5Can't' (indicated by ⏏)
in block <unit> at <tmp> line 1
jmerelo m: my $x = 0|1; say $x.?sum() // "Nope"
camelia any(0, 1)
jmerelo m: my $x = :3foo; say $x.?sum() // "Nope" 17:41
camelia Cannot resolve caller Numeric(Pair:D: ); none of these signatures match:
(Mu:U \v: *%_)
in block <unit> at <tmp> line 1
jmerelo I think it does not work very well on a multi 17:42
m: my $x = :3foo; say $x.?foo() // "Nope" 17:43
camelia Nope
codesect` how about:
Doc_Holliwood m: my $x; say (.item with $x.?x) || 0
camelia 0
codesect` m: my $x; say $x.?&sum//0 17:44
camelia Cannot resolve caller sum(Any:U: ); none of these signatures match:
(Any:D: *%_)
in block <unit> at <tmp> line 1
jmerelo m: my $x; say (.item with $x.?sum) || 0
camelia Cannot resolve caller sum(Any:U: ); none of these signatures match:
(Any:D: *%_)
in block <unit> at <tmp> line 1
codesect` m: my $x; say $x.&sum//0
camelia Cannot resolve caller sum(Any:U: ); none of these signatures match:
(Any:D: *%_)
in block <unit> at <tmp> line 1
jmerelo codesect`: tried that above. It's the multi
It says it will call "if there's a method of such name". But then, it might fail because of the signature 17:45
codesect` Yeah, I thought the & might change that
m: my $x; my sub sum(|) {}; say $x.?&sum//0 17:46
camelia 0
17:46 DiffieHellman left
codesect` that's slightly hacky, but works without any parens 17:46
jmerelo m: my $x=3; my sub sum(|) {}; say $x.?&sum//0 17:47
camelia 0
jmerelo codesect`: not really...
codesect` mmmmm
17:48 DiffieHellman joined 17:50 jmerelo left 17:57 sivoais left 17:58 sivoais joined, wamba left 17:59 wamba joined 18:02 reportable6 left 18:03 reportable6 joined 18:06 wamba left, cog left, wamba joined 18:12 DiffieHellman left, wamba left 18:13 wamba joined, DiffieHellman joined 18:15 eseyman left 18:23 wamba left 18:24 wamba joined 18:30 stoned75 joined 18:34 MasterDuke left, mowcat joined 18:44 wamba left
moritz weekly: news.perlfoundation.org/post/rakua...rt-2021-04 18:45
notable6 moritz, Noted! (weekly)
kiti_nomad[m] Learning raku these days 18:59
moritz kiti_nomad[m]: good choice :D 19:04
19:07 aborazmeh joined 19:08 Manifest0 left, wamba joined 19:10 Manifest0 joined 19:15 wamba left 19:16 wamba joined 19:21 DiffieHellman left 19:22 DiffieHellman joined 19:39 wamba left 19:40 parabolize left, wamba joined 19:42 parabolize joined 19:53 wamba left 19:54 wamba joined 20:15 abraxxa left 20:32 aborazmeh left 20:38 wamba1 joined 20:41 wamba left 20:42 wamba joined 20:44 wamba1 left 20:46 wamba left 21:03 wamba joined 21:12 brtastic left 21:16 stoned75 left 21:27 wamba left 21:46 eseyman joined, patrickb left 21:47 wamba joined 21:53 wamba1 joined 21:56 wamba left, wamba2 joined 21:57 GeekRuthie joined 21:58 wamba1 left 22:16 vrurg joined 22:47 MasterDuke joined, pecastro left
tbrowder hi, where can i find out about the new mailing list [email@hidden.address] 22:51
lizmat tbrowder: not so much a mailing list as an alias that lives on my mail server 22:52
just send a message to it for subscribing, and I will "subscribe" you if you want :-)
22:53 wamba2 left
tbrowder thnx 22:53
23:53 linkable6 left, evalable6 left 23:54 evalable6 joined 23:55 linkable6 joined