🦋 Welcome to the MAIN() IRC channel of the Raku Programming Language (raku.org). Log available at irclogs.raku.org/raku/live.html . If you're a beginner, you can also check out the #raku-beginner channel!
Set by lizmat on 6 September 2022.
rf Evening folks 00:46
[Coke] bug in REPL? if I "dd Nil", it outputs Nil twice. 12:05
normally if we emit output, you just get the output, not the result of the op
ah, it's OUT vs. ERR - should we be doing the same trick on following ERR so we can determine if output was made on either channel, not just OUT? 12:06
lizmat the output on ERR could be a warning 12:08
so then you still would want to see the actual value on STDOUT
that's why OUT is checked only
[Coke] ... OK, I figured there was a good reason it was setup this way 12:09
leont What is the computer science word for what subset does? I'm sure I've seen it come by at some point. 12:25
lizmat refinement type ? 12:26
type refinement ?
leont Yeah, thank you 12:30
[Coke] different REPL question - I occasionally miss the ability you had in tcl to type "ls" or "dir" in the REPL and have it auto-dispatch if it wasn't part of the language. 12:34
... actual question: anyone else ever want that feature? (not that it's too hard to type run('ls')) 12:35
Geth App-Rakubrew/main: 26 commits pushed by (Nick Logan)++, (Patrick Böker)++, (David Hoekman)++, Jasmin++
review: github.com/Raku/App-Rakubrew/compa...83bb4cc58d
12:37
lizmat [Coke] I think the tricky bit is finding out what isn't part of the language, and what is a compilation error caused by user misunderstanding 12:39
Geth App-Rakubrew/main: 4 commits pushed by (Patrick Böker)++ 12:48
Geth App-Rakubrew/main: bef1570c54 | (Patrick Böker)++ | release-stuff/do-release.sh
Small release script fixup
13:02
[Coke] sure, in tcl that was easier because everything started with a command 15:49
maybe a new prefix operator just in repl that does a run
something like !!ls
leont What's the incantation for "please export everything this other module exports? I'm currently at «::EXPORT::functions = ::SQL::Abstract::EXPORT::functions» but that gives me an error 17:58
lizmat you have an EXPORT sub ? 18:10
leont That doesn't take tags, does it? 18:14
lizmat EXPORT sub can take named args 18:23
rf Afternoon folks 18:43
leont lizmat: do you have a working example of that? 18:56
leont «Too many positionals passed to 'select'; expected 2 arguments but got 2» go home Raku you're drunk 21:22
leont Apparently, named arguments after a capture argument blows up like that 21:24
m: sub function(|args, :$named) { ... }; function(1) 21:26
camelia Too many positionals passed to 'function'; expected 1 argument but got 1
in sub function at <tmp> line 1
in block <unit> at <tmp> line 1
Nemokosch yes; did I not report that? 21:39
github.com/rakudo/rakudo/issues/5102 21:41
kybr m: (1..4).List 23:41
camelia ( no output )
kybr m: (1..4).List.say 23:42
camelia (1 2 3 4)
kybr m: (4..1).List.say
camelia ()
kybr why?
kybr i'm sure there's a good reason that (4..1).List does not become (1,2,3,4) but instead () but it is not coming to me. 23:47
err (4,3,2,1)