🦋 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.
Geth ecosystem/main: 8d93690b96 | L'Alabameñu++ (committed using GitHub Web editor) | META.list
Intl::LanguageTag & Intl::UserLanguage moved to zef
01:47
Nemokosch guifa_: yes yes, just when I wanted to ask on #cro 06:46
I went to raku.land so that I can cite the exact situation and bang, they were all on top 😄 06:47
Geth ¦ doc: Altai-man self-assigned language/control and language/statement-prefixes cross contaminate github.com/Raku/doc/issues/4117 10:23
Xliff Is the closest rakudo equivalent to the JS '.each' method spelled 'for'? 11:52
moritz .map I'd think? 11:55
jast raku's .map would be equivalent to JS's .map I guess 11:58
AFAIK JS doesn't even have a .each, except as provided by third party libraries :) 11:59
Nahita forEach is meant i think 12:00
Nemokosch each is jQuery maybe 12:11
lizmat if JS .each is anything like Perl each, I'd say .pairs ? 12:47
which is actually the default if you iterate a hash
Xliff So would .each (jQuery) be for? 13:06
jast probably. the only reason it's a method in jQuery is that that's the only way to do it there (or used to be, I don't know) 13:09
moritz I think .each in jQuery correponds to raku's .map best 14:06
the built-in JS Array.map has some... weird things going on, I think?
Nemokosch It's pretty normal imo but not nearly as powerful as the Raku map 14:13
starting with the fact that it's only for Arrays and it doesn't work reliably when you try to steal it from the prototype for other structures 14:15
tonyo js Array.map has a lot more stuff than .map of raku 15:00
Nemokosch yet it's less powerful, simply because JS has no concept of blocks 15:07
blocks as callable entities, that is 15:08
Nemokosch today's nerve-crushing nonsense: 15:11
tellable6 2022-10-15T21:32:04Z #raku <guifa_> nemokosch: that's a joke, there, I think.
2022-10-16T14:44:22Z #raku <guifa_> Nemokosch: there might be a bit way of testing supplies, but I figured the best way is to make the test file look like how people would use it
2022-10-18T23:29:25Z #raku <guifa_> Nemokosch: you just got an official cro update ;-)
Nemokosch m: dd 'asdfg' .comb
camelia ("a", "s", "d", "f", "g").Seq
Nemokosch m: 'asdfg' .comb.&dd 15:12
camelia ===SORRY!=== Error while compiling <tmp>
Malformed postfix call
at <tmp>:1
------> 'asdfg' .comb.⏏&dd
Nemokosch it's a good question why .& isn't allowed to be detached in the first place
but here, it's as "attached" as it can possibly be
massa long time no IRC 18:56
massa m: 'asdfg'.comb.&dd 19:07
camelia ("a", "s", "d", "f", "g").Seq
massa there was an spurious space somewhere 19:08
I have to go...
tonyo haven't seen that name in a long time 19:20
Nemokosch I mean yes, in front of `.comb` - that's the point 19:21
tonyo the point was you had a syntax error with the space 19:23
Nemokosch if `'asdfg' .comb` works and `whatever.&dd` works, it's fair (and useful) to expect that `'asdfg' .comb.&dd` should also work -`.&` is attached to the left argument as much as possible
tonyo seems to work fine without syntax error 19:24
m: sub XXX(|) { "xxx" }; (1..50).map({$_}).join\ .&XXX.&dd;
camelia "xxx"
Nemokosch exactly - or we might say that the syntax had an error with the space 🙂 it's just a matter of perspective 19:25
tonyo ah - i see your point
Geth advent: 459ade022c | (Alexey Melezhik)++ (committed using GitHub Web editor) | raku-advent-2022/authors.md
Introduction into SparrowCI pipelines

  ci.sparrowhub.io/quickstart
23:22