🦋 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.
00:00 reportable6 left 00:02 reportable6 joined 00:55 MasterDuke left 00:56 deoac joined 01:04 xinming left 01:06 xinming joined 01:31 derpydoo joined 02:07 deoac left 02:18 teatwo joined 02:21 teatwo left, tea3po left, teatwo joined 02:51 MasterDuke joined 03:11 derpydoo left 04:11 linkable6 left, evalable6 left 04:12 linkable6 joined, evalable6 joined 04:21 teatwo left, teatwo joined 05:18 jetchisel left 05:21 jetchisel joined 06:00 reportable6 left 06:02 reportable6 joined 07:02 evalable6 left, linkable6 left 07:05 evalable6 joined, linkable6 joined 07:29 jpn left 07:54 sena_kun joined 08:12 Sgeo left 08:44 abraxxa joined 09:30 jpn joined 09:46 Manifest0 joined 09:49 jpn left 10:13 jpn joined 11:07 frost joined 11:13 frost left, frost joined 11:25 frost left
tbrowder__ m: sub a {1,1}; a 11:42
camelia ( no output )
lizmat m: sub a {1,1}; dd a
camelia (1, 1)
tbrowder__ m: sub a{1,2}; say a
camelia (1 2)
tbrowder__ m: sub b{[1,2]}; say b 11:43
camelia [1 2]
tbrowder__ m: sub c{(1,2)}; say c 11:45
camelia (1 2)
lizmat () don't create a list, the comma does
hence no difference between returning (1,2) and 1,2 11:46
tbrowder__ m: my $a = (1,2); my $b = [1,2]; say $a.WHAT; say $b.WHAT
camelia (List)
Nemokosch m: 1,2 andthen .array.say 11:47
Raku eval Exit code: 1 No such method 'array' for invocant of type 'List'. Did you mean 'Array'? in block <unit> at main.raku line 1
Nemokosch hm, maybe there is only .Array indeed
11:48 zara joined
uh, [...] is a bit more magical than this 11:49
but eventually that also just "enforces array context" on an Iterable
that's why [[[1]]] is exactly the same as [1]
11:58 zara left 12:00 reportable6 left 12:01 reportable6 joined 13:01 linkable6 left, benchable6 left, releasable6 left, committable6 left, tellable6 left, coverable6 left, quotable6 left, squashable6 left, bisectable6 left, nativecallable6 left, reportable6 left, evalable6 left, shareable6 left, greppable6 left, unicodable6 left, notable6 left, statisfiable6 left, sourceable6 left, bloatable6 left 13:02 squashable6 joined, benchable6 joined, nativecallable6 joined, quotable6 joined, bloatable6 joined, committable6 joined, tellable6 joined, bisectable6 joined 13:03 notable6 joined, coverable6 joined, shareable6 joined, statisfiable6 joined, greppable6 joined, sourceable6 joined, evalable6 joined, reportable6 joined 13:04 linkable6 joined, unicodable6 joined, releasable6 joined 13:06 xinming left 13:08 xinming joined
tbrowder__ my problem is that [] and () do not satisfy the "is-deeply" test, but still debugging, maybe i'll try plain "is"... 13:17
my bad, disregard, but i do have a long-standing gripe about tests "is", "is-deeply" and probably others 13:22
if i do a simple test like "is 1, 2" where 1 is "got" and 2 is "expected" 13:24
i get a failure message with results in the REVERSE order which hurts my brain 13:25
error msg something like "expected: blah; got: bluh" 13:26
makes debugging much harder for my aging synapses
i should have entered an issue and a PR long ago 13:27
14:25 teatwo left 14:26 teatwo joined 15:12 tea3po joined 15:16 teatwo left
ugexe the first argument to `is` is the expected 15:28
which then matches the order of the error message mentioning expected first 15:29
as for which argument should come first... depends on which language you are using. In Go you usually have expected first, in perls Test::More 'is' has the actual first. the bad news is all tests written implicitly or explicitly are using the first argument to mean 'expected'. 15:31
so i don't think changing it is something that is on the table 15:32
15:32 Sgeo joined
[Coke] docs.raku.org/type/Test#sub_is says the first arg is "got", not "expected" 15:37
I imagine the ask would be to change the error diagnostic output 15:38
ugexe lol yeah i dunno how i read that backwards 15:46
[Coke] changing the diag output is easy peasy but probably breaks roast. 15:47
ugexe the spirit of the roast tests written that check diag output don't seem to be concerned with the format of the output, just that the output contains certain elements (although they test for those elements in a way that depends on the format of the next) 15:50
[Coke] ... maybe easier if we add in an internal helper sub.
ugexe s/next/text/
[Coke] Yup, I think if 'use Test' tests *do* care about it now, it's correct to update them to just check that the content exists.
I personally don't mind the existing order in either case. 15:51
Nemokosch it's good to see some interest wrt how roast needs to be interpreted 15:56
16:00 jpn left 16:04 ab5tract joined 16:18 Oshawott joined 16:22 archenoth left 17:22 linkable6 left, coverable6 left, sourceable6 left, committable6 left, quotable6 left, greppable6 left, reportable6 left, notable6 left, unicodable6 left, releasable6 left, shareable6 left, bisectable6 left, bloatable6 left, statisfiable6 left, squashable6 left, nativecallable6 left, benchable6 left, tellable6 left, evalable6 left, statisfiable6 joined, evalable6 joined, tellable6 joined, reportable6 joined 17:23 greppable6 joined, releasable6 joined, notable6 joined, quotable6 joined, committable6 joined, coverable6 joined 17:24 linkable6 joined, benchable6 joined, shareable6 joined, sourceable6 joined, bisectable6 joined, bloatable6 joined, nativecallable6 joined, squashable6 joined 17:25 unicodable6 joined
tonyo rf: what was the name of your web framework? 17:44
lizmat Humming-Bird ? 17:45
tonyo yes ty
17:51 jpn joined 17:58 jpn left 18:00 reportable6 left 18:01 reportable6 joined 18:28 Sauvin is now known as Zymurgy, Zymurgy left, Zymurgy joined 18:30 ab5tract left 18:31 jpn joined 18:38 jpn left 19:38 evalable6 left, linkable6 left, evalable6 joined 19:40 linkable6 joined 20:21 jpn joined 20:22 abraxxa left 20:26 jpn left 20:43 jpn joined 21:19 squashable6 left 21:22 squashable6 joined
rf lizmat++ 21:23
tonyo: Sorry been the busiest week of my life I swear :P
21:42 sena_kun left 21:44 jpn left
tbrowder__ wrt to my gripe, a named arg or env var would help me if it's too tough otherwise 22:23
22:29 Xliff left 22:36 bpalmer joined 22:48 ismustachio left 23:17 ismustachio joined 23:25 jpn joined 23:30 jpn left 23:32 vrurg left 23:35 vrurg joined 23:36 vrurg left 23:37 Manifest0 left 23:40 vrurg joined 23:53 squashable6 left 23:56 squashable6 joined