🦋 Welcome to Raku! raku.org/ | evalbot usage: 'p6: say 3;' or /msg camelia p6: ... | irclog: colabti.org/irclogger/irclogger_log/raku
Set by ChanServ on 14 October 2019.
[Coke] ^^ do we even have a "Perl5" Compiler? 00:14
I wonder if the text that was just fixed there was more a "if we had it..." 00:15
coldpress raiph: Here are the details: without CArray: 0x0.st/iFHl.raku, with CArray: 0x0.st/iFH0.raku. I can't use Blobs because I need my CArray to be mutable 02:28
tellable6 coldpress, I'll pass your message to raiph
xinming_ in react whenever { }, I know we can't do return, since return only works in sub, Then, how do we early exit a block in whenever? I don't mean to group the logic with a large if 07:51
MasterDuke xinming_: `done` i think 08:51
Geth doc/eval-2905: bad7c186d4 | (Stoned Elipot)++ | doc/Type/independent-routines.pod6
Add example for EVAL's filename parameter
08:59
tyil MasterDuke: I thought `done` finishes the react block, not the specific whenever block 09:02
MasterDuke oh, that very well could be true 09:08
MasterDuke but wait, isn't that what's wanted? or is there really code in the body of the react that is desired to be run after the whenever? 09:10
xinming_ MasterDuke: I mean exit the current whenever block, but not stop the whole react block. 11:14
lizmat there is a "leave" statement suggested for that, but this was never implemented as it was deemed unnecessary 11:20
Geth doc/eval-2905: 4687964c53 | (Stoned Elipot)++ | doc/Type/independent-routines.pod6
Add hint about more languages support for EVAL
11:48
Geth doc: 8f033006c0 | (Stoned Elipot)++ | doc/Type/Parameter.pod6
Fix link
13:27
linkable6 Link: docs.raku.org/type/Parameter
Geth doc: b64b123cb0 | (Stoned Elipot)++ | doc/Type/Parameter.pod6
Xref about sigils and twigils
14:18
linkable6 Link: docs.raku.org/type/Parameter
Geth doc: 93889d370d | (Stoned Elipot)++ | doc/Type/Parameter.pod6
Fix links
14:50
linkable6 Link: docs.raku.org/type/Parameter
Geth doc: c620570a13 | (Stoned Elipot)++ | doc/Type/Parameter.pod6
Fix links
15:29
linkable6 Link: docs.raku.org/type/Parameter
stoned75 commit: releases say :($a).params[0].default 17:48
committable6 stoned75, gist.github.com/b7af603fd4752feaba...dec3e1f1c8
lizmat bisectable6: say :($a).params[0].default 17:56
bisectable6 lizmat, Will bisect the whole range automagically because no endpoints were provided, hang tight
lizmat, Output on all releases: gist.github.com/c69f455e3d5b77984a...23aff7b609
lizmat, Bisecting by output (old=2020.07 new=2020.08.2) because on both starting points the exit code is 0
lizmat, bisect log: gist.github.com/abb8357bbda2c59806...09057f4837
lizmat, (2020-06-18) github.com/rakudo/rakudo/commit/c1...f35a2c87af
lizmat, Output on all releases and bisected commits: gist.github.com/1d367083adec0d5ba4...9be5d22ecd 17:57
stoned75 c11f4b18ae67462ec281b226788b2ef35a2c87af is the answer :) 17:59
linkable6 (2020-06-18) github.com/rakudo/rakudo/commit/c11f4b18ae Type Parameter's methods
Geth doc/param-default: b16ac9bfa9 | (Stoned Elipot)++ | doc/Type/Parameter.pod6
Update Parameter.default and add example
18:01
doc: stoned++ created pull request #3734:
Update Parameter.default and add example
stoned75 commit: releases say :(Any).params[0].name 18:04
committable6 stoned75, gist.github.com/200c644847a26782fa...b98b6cefc5
stoned75 Parameter.usage-name is the parameter's name without any sigil or twigil. am I wrong ? 18:16
Geth doc: 875dacc6af | (Stoned Elipot)++ (committed by Juan Julián Merelo Guervós) | doc/Type/Parameter.pod6
Update Parameter.default and add example
18:35
linkable6 Link: docs.raku.org/type/Parameter
Geth doc/eval-2905: 1cfc69443d | (Stoned Elipot)++ | doc/Type/independent-routines.pod6
Clarify EVAL's $filename parameter description
19:19
Geth advent/zaucker-patch-1: d6ed630e0b | (Fritz Zaucker)++ (committed using GitHub Web editor) | raku-advent-2020/authors.md
Update authors.md

Add zaucker
19:45
advent: zaucker++ created pull request #80:
Update authors.md
Geth advent: d6ed630e0b | (Fritz Zaucker)++ (committed using GitHub Web editor) | raku-advent-2020/authors.md
Update authors.md

Add zaucker
19:51
advent: 940b5d97c1 | (Juan Julián Merelo Guervós)++ (committed using GitHub Web editor) | raku-advent-2020/authors.md
Merge pull request #80 from Raku/zaucker-patch-1

Update authors.md
doc/master: 6 commits pushed by (Stoned Elipot)++, stoned++ 19:54
stoned75 commit: releases say Signature.new(foo=>3) 20:14
committable6 stoned75, gist.github.com/3d0de5d0152bc2ef35...5b64f826c0
stoned75 commit: releases say Signature.new(params=>3) 20:15
committable6 stoned75, ¦releases (49 commits): «()␤»
stoned75 jj:w 20:45
El_Che a computer without esc? :) 20:47
stoned75 eh 20:48
:)
Xliff My new "monitor" ... photos.app.goo.gl/B9aXjLkue1KRRVUY6 20:51
codesect` is there a better way to conditionally call a function? right now I have something like `.&{ :$condition ?? .fn !! $_ }` but that feels clunku 21:14
lizmat well, apparently you want to call the method on $_ when a condition is met 21:15
and otherwise pass on $_, right ? 21:16
codesect` yeah
and the problem is that most conditionals don't pass on $_; they return Nil when false 21:17
lizmat yeah, or Empty, but yeah 21:18
codesect` oops, right
lizmat but to be honest, what feels clunky to me in that example, is the use if .&{ ... } :-)
codesect` yeah. Maybe `(.fn if $condition) // $_` would be a better way to say it 21:21
(though that might need to be wrapped in extra (), depending on what's around it) 21:23
stoned75 eval: Parameter.new(name => '*@a') 21:24
evalable6 (exit code 1) Cannot call method 'EXISTS-KEY' on a null object
in block <unit> at /tmp/F9e6nNI5uo line 1
stoned75 I'm a bit suprised by the result :-}
surprised even 21:25
lizmat yeah, that is weird 21:26
ah, found the issue 21:27
stoned75 cool 21:28
lizmat m: class A { method BUILD(*%args) { dd %_ } }; A.new # more benevolent version
camelia Mu
patrickb Is it expected, that a script called as `raku -I. bin/script.raku` won't be able to access the resource files? If not I'll rakudobug... 21:54
lizmat I don't think so: %*RESOURCES is internal to a module only, is it not ? 22:08
patrickb Is there any way to make a script part of a module? 22:09
This gave me a huge WAT yesterday. (Didn't figure it out until a few minutes ago.) 22:11
lizmat if you control the module, then you could think of adding a class method that exposes its %*RESOURCES ? 22:15
patrickb I guess that's what I'll do. Create a lib folder with a rakumod file in my module. Feels like overkill in a module otherwise only consisting of a 87 line script and three resource files... 22:17
Just so I understand this correctly. `.raku` files are never considered to be part of a module, correct? 22:23
lizmat that's my understanding, yes
patrickb Ok. Thanks for clarifying! I'll try to get this doc-ed somehow. :-) 22:25
codesect` upon coming back to that section of my code, I think `?$condition Rxx .fn || $_` is a clearer way to say what I want to say 22:45
(`?$condition && .fn || $_` also works, but the precedence isn't quite as clear, imo) 22:47
lizmat if the result of .fn is false, is it the intent that $_ is used ? 22:56
stoned75 commit: releases say :(Any).params[0].name 23:13
committable6 stoned75, gist.github.com/17daa2552dd51de3db...b97d587529