🦋 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.
Nemokosch news.ycombinator.com/item?id=36183683 peak comedy 09:35
Voldenet ngl I was so excited to use this language after reading the features 11:17
Nemokosch I used AI for my first program in DreamBerd 12:09
tonyo .tell uzl[m] oops - merged and published 14:42
tellable6 tonyo, I'll pass your message to uzl[m] 14:43
[Coke] using Text::CSV - if I do $csv.say($fh,@row), I am getting a trailing ^M on each row, which isn't in the raw data. 15:42
... reran it and it's gone? wtf. 15:44
[Coke] weird. 16:03
tbrowder__ m: my @a; @a[1] = 6; 16:55
camelia ( no output )
tbrowder__ m: my @a; @a[1] = 6; say @a.gist 16:56
camelia [(Any) 6]
tbrowder__ m: my @a; @a[0] = 6; say @a.gist 16:57
camelia [6]
tbrowder__ m: my @a; @a[0] = 1, @a[6] = 6; say @a.gist 16:58
camelia [(1 6) (Any) (Any) (Any) (Any) (Any) 6]
tbrowder__ weird 16:59
m: my @a; @a[0] = 0: @a[3] = 3; say @a.raku 17:01
camelia ===SORRY!=== Error while compiling <tmp>
Confused
at <tmp>:1
------> my @a; @a[0] = 0:⏏ @a[3] = 3; say @a.raku
expecting any of:
colon pair
tbrowder__ m: my @a; @a[0] = 0; @a[3] = 3; say @a.raku 17:02
camelia [0, Any, Any, 3]
tonyo tbrowder__: s/,/; 17:13
tellable6 2023-06-05T21:27:57Z #raku <uzl[m]> tonyo I think you forgot to merge it haha. And sure, np!
tonyo the @a[1] assignment is returning 6 and you're assigning the tuple 1, 6 to position 0
tonyo are we still submitting grant requests through TPF? i'd like to submit one to open source-ize the fez backend stuff 17:38
librasteve m: my @a; @a[0] = 1; @a[6] = 6; say @a.gist 19:13
Raku eval [1 (Any) (Any) (Any) (Any) (Any) 6]
librasteve yeah, its ';' not ','
tbrowder__ tonyo: yep, i saw it. thnx 20:20
i'm trying to create an operator for my OneArray class which is looking pretty good, but i want it to have its own []= operator which i think has to have a method something liepostfix<[]> ($index, 20:24
like this: method postfix<[]>(|args) { sub circumfix<=>(|args) { ... }" but not sure how to unpack the args... 20:28
in the meantime i'll fake it! 20:38
tbrowder__ tonyo: how would uou 21:15
*you like a PR to convert CSV::Parser to use mi6? 21:17
Xliff \o 23:12
tellable6 2023-06-05T00:12:37Z #raku <[Coke]> xliff: missing closing ) near arbitrary list ?
Xliff No weekly?
.tell [Coke] Thanks! Edited.
tellable6 Xliff, I'll pass your message to [Coke]