01:41
guifa left
01:53
zetaaaa joined
02:28
Aedil joined
02:31
hulk joined
02:32
kylese left
03:13
yewscion_ joined
03:15
hulk left,
kylese joined,
yewscion left
03:30
zetaaaa left
04:26
yewscion_ left,
yewscion_ joined
04:38
yewscion_ left
06:43
cm joined
06:44
cm left
07:05
cm joined
07:09
[Coke] left
07:11
[Coke] joined
07:18
Sgeo_ left
07:19
cm left
07:20
cm joined
07:39
cm left,
cm joined
09:04
human-blip left
09:06
human-blip joined
09:09
dakkar joined
10:09
sena_kun joined
10:33
ryoskzypu left
10:49
ryoskzypu joined
11:01
Inline joined
|
|||
xinming | librasteve: I'm not sure when List will be flatten, So I had a habit add | at the front of Positional, Today, I read docs.raku.org/language/list again, When I read "list or arrays with a single element will be flattened", Now I found the answer. | 12:35 | |
lizmat | xinming: I wonder what you think about the semantics offered by >>> in raku.land/zef:lizmat/OneSeq | 12:40 | |
xinming | I think the middle letter should be changed to more "list" relted op. :-) | 12:49 | |
One of the letter be >>, or <<, | 12:50 | ||
Or maybe ,>> ,<< | |||
timo | (>^_^)> <(^_^<) | ||
xinming | Everything >>> makes me feel it's like sending data to other var | ||
timo: Your version is good too | 12:51 | ||
timo | time to standardise support for animated "stickers" so we can have patrick take one variable and put it into another variable | 12:53 | |
xinming | It's something like, my @merged = [@a1, @a2]; my $merged = @a1 <,< @a2; | 12:54 | |
timo | (animated stickers outside the standard set require a Raku Turbo subscription) | ||
lizmat | thanks for your feedback :-) | 12:55 | |
xinming | or my $merged = @a1 <<, @a2; | 12:57 | |
lizmat | m: my @a = ^3; dd @a <<, @a | ||
camelia | ===SORRY!=== Error while compiling <tmp> Missing << or >> at <tmp>:1 ------> my @a = ^3; dd @a <<,<HERE> @a expecting any of: infix infix stopper |
||
xinming | But << is used for qutoed list construct | 12:58 | |
so <,< is the best bet | |||
lizmat | m: my @a = ^3; sub infix:«<<,»(|c) { dd c }; dd @a <<, @a | ||
camelia | \([0, 1, 2], [0, 1, 2]) Nil = Nil |
||
lizmat | hmmm | 12:59 | |
xinming | << is used as quoting construct already, So I personally think, <<, should be "quoting" like actions | ||
OneSeq is special version of concat for list, So need something to make it feel like Positional op | 13:01 | ||
lizmat | but the whole point of OneSeq is that it does *not* produce a Positional, but a Seq | ||
(without caching, and hopefully without positional bindfailover | 13:02 | ||
:q | |||
librasteve | lizmat: very nice OneSeq ... any plans to put that in core? | 13:07 | |
on the name for the op, well I quite like >>> but I do have the feeling that it could be used for something more common, xinming idea of >,> seems pretty good to me (yes I know its not making a List, but the idea of involving the , and not getting too close to the double quotes is nice | 13:10 | ||
I am ashamed to say I wrote this line of code has $.url-path = ($!base ?? "$!base/" !! '') ~ "todo"; | |||
I find it very ugly ... please can someone give me a hint on how to do this more elegantly? | 13:11 | ||
lizmat | no plans as such, just testing the waters | ||
I recently separated the ops from the underlying functionality, to make it easier to select what you want | 13:12 | ||
13:37
guifa joined
|
|||
nahita3882 | how about less elegant 😐 "{$!base || ""}/todo".substr(!$!base) | 14:33 | |
!$! appearing is kind of cool though | 14:34 | ||
_____________________________._. | ($!base || Empty, "todo").join: "/" maybe? | 14:54 | |
librasteve | hmmm … both good ideas … i was also wondering if there is an IO path kind of operation (prepend parent or something) | 14:56 | |
here's my new try do with $base {"$_/"} ~ 'todo' | 15:10 | ||
ugexe | $url-path = join '/', $!base, 'todo'; | 15:23 | |
i guess that isn't sufficient either... needs a grep or some such | 15:24 | ||
$url-path = join '/', grep *.so, $!base, 'todo'; | 15:26 | ||
15:49
lizmat left
|
|||
librasteve | tricky | 16:28 | |
17:34
dakkar left
17:48
hudo__ joined,
sena_kun left
17:49
sena_kun joined
17:50
gabiruh left,
gabiruh joined
17:51
ecocode left,
sivoais left,
lizmat joined,
tadzik left,
mst left,
hudo_ left,
broquaint left,
elcaro left,
avar left,
mst joined,
lizmat left
17:52
avar joined,
tadzik joined,
sivoais joined,
broquaint joined,
elcaro joined
17:53
lizmat joined
17:56
ecocode joined
18:19
tadzik left,
tadzik joined
18:37
ramman left
18:40
[Coke] left
20:11
Aedil left
21:21
cm left
22:32
bdju left
22:33
bdju joined
23:04
sena_kun left
23:20
Sgeo joined
|