|
00:02
deadmarshal left
00:34
deadmarshal joined
|
|||
| disbot4 | <comborico> This works: for 1..5 {say "foo" } | 05:40 | |
| <comborico> This does not: for 5..1 {say "foo" } | 05:41 | ||
| <comborico> (with use v6;) Not sure what version to put. Fresh install of Rakudo, though, I think. | 05:45 | ||
| <comborico> I understand that its suppose to be three dots. But I just find it strange it works one way but not the other. | 05:55 | ||
| <librasteve> two dots give you a Range, three is the sequence operator | 07:32 | ||
| <librasteve> Ranges are the kind of thing you can use as an index into an Array | |||
| <librasteve> so they barf unless you make them ascending | 07:34 | ||
| <librasteve> m: say ('a'..'e')[*+(-3..-1)] | 07:44 | ||
| <Raku eval> (c d e) | |||
| <librasteve> lol | |||
|
07:58
Manifest0 joined
|
|||
| lizmat | yup, *-1 is just a WhateverCode, any Callable as index will do :-) | 09:17 | |
|
10:42
apogee_ntv left
10:43
apogee_ntv joined
13:31
apogee_ntv left
13:32
apogee_ntv joined
14:30
librasteve_ joined
|
|||
| librasteve_ | rakudoweekly.blog/2026/05/25/2026-...lease-193/ | 15:56 | |
| lizmat | librasteve_++ | 16:53 | |
| disbot4 | <comborico> I'm wondering why the ending parameter needs a comma. | 17:47 | |
| <comborico> cdn.discordapp.com/attachments/768...ef50b& | |||
| lizmat | it doesn't, it's optional | 17:49 | |
| disbot4 | <comborico> Actually, nope it broke the subroutine. Seems to be necessary. Are you seeing the screenshot on IRC? | 18:02 | |
| <comborico> Malformed parameter | 18:04 | ||
| lizmat | is there a text gist from that? I hate to be typing from an image | 18:07 | |
| disbot4 | <comborico> Line 12, as written breaks. But add comma after wall and it works. pastebin.com/s4ycBTFR | 18:08 | |
| <comborico> I'm sorry. I don't know what a test gist is. | |||
| <comborico> *text | |||
| lizmat | something I can copy / paste the code out of | 18:09 | |
| disbot4 | <comborico> Is the Raku conference always in Greenville, SC? | 18:15 | |
| lizmat | The TPRC was there last year as well, and the year before that if I recall correctly | 18:16 | |
| before that it has been in many places in North America | |||
| disbot4 | <comborico> So what's the deal with that comma? | 19:40 | |
| lizmat | hmmm... executes fine for me, with or without the comma | 19:42 | |
| which version of Rakudo are you using ? | 19:43 | ||
| disbot4 | <comborico> rakudo-moar-2026.04-01 | 19:45 | |
| <comborico> Huh... that's weird. It's working now. | 19:47 | ||
| <comborico> I must have done something. Probably my Emacs crazy hands doing something else. | 19:50 | ||
| lizmat | well, glad that it's fixed, even though we don't know how or why :-) | ||
| disbot4 | <comborico> Haha, yeah... | ||
| <comborico> Me, too | |||
| <comborico> Is there any more info on Quoting Construct besides docs.raku.org/syntax/Q ? | 20:02 | ||
| <comborico> Oop, I see an Advent post. See, newbies get excited and ask questions first, then search later. | 20:03 | ||
| lizmat | raku-advent.blog/2023/12/10/day-10...agic-of-q/ | ||
| disbot4 | <comborico> Haha, and you wrote it | ||
| lizmat | yeah :-) | ||
| disbot4 | <comborico> The highlighting didn't catch the :c in the say qq:!s:!c/foo "$x{$y}"\n/; # foo "$x{$y}" | 21:02 | |
| <comborico> And is EVALled the correct spelling? | |||
| <comborico> I tried to leave a nice anonymous comment, but it wouldn't let me. | 21:03 | ||
|
21:18
apogee_ntv left,
apogee_ntv joined
|
|||
| disbot4 | <comborico> Is there an easier way? my $foo = 'a', 'b', 'c' | 21:44 | |
| <comborico> I tried: my $foo = (a, b, c) | |||
| <comborico> But REPL thinks it's subroutines | 21:45 | ||
| <comborico> On top of that, when called, $foo returns only a, for my $foo = 'a', 'b', 'c' | 21:47 | ||
| <comborico> I understand scalars can only hold one value. But I thought the comma notation caused the list type to kick in. | 21:51 | ||
| lizmat | m: my @foo = <a b c> | 21:53 | |
| camelia | ( no output ) | ||
| lizmat | m: my @foo = <a b c>; dd @foo | ||
| camelia | ["a", "b", "c"] | ||
|
21:59
apogee_ntv left
22:06
apogee_ntv joined
22:43
apogee_ntv left
22:49
apogee_ntv joined
22:54
apogee_ntv left
23:01
apogee_ntv joined
23:23
apogee_ntv left
23:24
apogee_ntv joined
23:31
Manifest0 left
|
|||