|
00:10
Aedil left
00:35
david7832 left
01:04
tejr joined
01:05
sibl joined
|
|||
| [Coke] | interesting, all the combo stuff looks so much worse now that I've detached and reattached to my tmux session | 02:04 | |
|
02:57
kylese left
02:58
kylese joined
03:11
eseyman left
03:15
kylese left,
kylese joined
03:22
eseyman joined
03:28
vasko4535586 left
03:31
vasko4535586 joined
03:39
Aedil joined
04:05
vrurg left
04:07
vrurg joined
05:27
topnep left
05:28
topnep joined
07:06
sorenson left,
jcallen left,
jcallen joined
07:07
sorenson joined
07:32
topnep left
07:33
topnep joined
08:05
Sgeo left
08:11
abraxxa joined
08:16
abraxxa left
08:17
abraxxa joined
08:23
PotatoGim left
08:27
PotatoGim joined
08:50
Aedil left
08:59
sibl left,
sibl joined
09:11
sibl left,
sibl joined
09:57
sibl left
11:03
Aedil joined
11:12
sibl joined
11:19
sibl left
|
|||
| [Coke] | it would be nice if, after having created a fork to submit a PR, and the PR was accepted (or rejected), I got a notice from github "hey, are you done with this fork now? I can delete it for you..." | 13:12 | |
|
15:31
abraxxa left
|
|||
| jdv | feels like that might go against gh biz interests | 16:02 | |
| coleman | I think if you merge the PR yourself you get a button to delete the fork | 16:37 | |
| in general forks on GitHub aren't the beat | 16:38 | ||
| lucs | Given: | 17:38 | |
| m: sub Baz ($a, :$b!, :$c = 'C') { print "$a$b$c" }; Baz('A', :b('B')); # OK: "ABC". | 17:39 | ||
| camelia | ABC | ||
| lucs | Now I'd like Foo() to simply pass its args to Baz(), something like: | ||
| sub Foo (?) { Baz(?) }; Foo('A', :b('B')); # Want "ABC". How? | |||
| lizmat | sub Foo(|c) { Baz(|c) } | ||
| the "c" is just an identifier | 17:40 | ||
| lucs | (oops, phone, wife, brb...) | ||
| lizmat | "|c" represents capturing all arguments into a Capture in the Foo Signature | ||
| in the call to "Bar", "|c" represents flattening all args in the Capture as args in the call | 17:41 | ||
| lucs | Awright! Damn, I love Raku :) | 17:44 | |
| Thanks lizmat | 17:45 | ||
| lizmat | if Foo just consists of calling Bar, you could probably do: | 17:50 | |
| my constant &Foo = &Bar | 17:51 | ||
| and: yw :) | |||
| lucs | What I really have is: `proto method Baz ($s, |) { ⟨common stuff⟩ {*}}` | 18:21 | |
| Then for example: `multi method Baz ('foo', ⟨args⟩)⋯` and others. | |||
| But I got annoyed at having to type `Baz('foo', ⟨args⟩)` all the time. | |||
| So I now have `method Foo (|c) { self.Baz: 'foo', |c }` and others instead. | |||
| and can simply call `Foo(⟨args⟩)` from now on. | |||
| lizmat | yup | ||
| timo | there's also .assuming, but it's easier to use with subs than it is with methods I think | 18:27 | |