|
01:29
sibl joined,
sibl left,
sibl joined
|
|||
| disbot2 | <simon_sibl> I am not sure to understand the difference between callwith and samewith, for me samewith because of the same should call the same function its already in, but it doesnt seem to be the case | 02:37 | |
|
02:58
apogee_ntv left
03:00
apogee_ntv joined
04:27
sibl left
05:17
sibl joined
06:52
dakkar joined
|
|||
| disbot2 | <librasteve> @simon_sibl I'll try to clarify ...for me samewith is easy to understand ... it just reruns the dispatch from scratch with the new args (try running the factorial example here docs.raku.org/language/functions#sub_samewith) | 07:48 | |
| <librasteve> callwith calls the next candidate (so the current candidate is excluded) - the example here shows that docs.raku.org/language/functions#sub_callwith - so it is quite a jumpy ride around the multis | 07:51 | ||
| <librasteve> suggest you try swapping the calls around and see what breaks ;-) | |||
| <simon_sibl> is the next candidate affected by which order the multi sub are declared ? | 07:53 | ||
| <simon_sibl> it seems yes | |||
| <simon_sibl> I see | |||
| <librasteve> should order from most specific (often a where clause) to least specific, maybe declaration order is a tie breaker | 09:10 | ||
|
09:11
sibl left
11:00
sibl joined
12:46
sibl left
15:46
human-blip left
15:48
human-blip joined
15:52
dakkar left
16:41
human-blip left
16:43
human-blip joined
|
|||