|
01:20
sibl joined
|
|||
| disbot2 | <simon_sibl> multi sub combine(Hash \a, \b --> Hash()) { is this like in Go where if the types is the same you dont need to repeat it or in this case \b could be something else than a Hash ? | 02:02 | |
| <simon_sibl> the quicksort code is quite amazing, I wish my brain could come up with stuff like that 😆 | 02:10 | ||
| [Coke] | I think \b could be anything there. | 02:54 | |
| m: 3.say | 03:08 | ||
| not bot, sorry - yes, the b isn't restricted there. | |||
|
07:03
sibl left,
sibl joined
|
|||
| disbot2 | <librasteve> @simon_sibl … yes exactly … I could have maybe have used %a on this sub but I chose to keep the same signature for both multis … so \a will take Any on the other sub… going sigilless helps to project that “will take any type” intent hopefully | 07:11 | |
| <librasteve> btw the weekly tips n tricks is aimed at (i) putting some actual Raku in the weekly so that occasional readers can get a feel for what we are on about and (ii) as a way to share idioms with readers who are moving up the curve. What are your thoughts… is it sometimes interesting/helpful? Too easy/too hard? | 07:14 | ||
| <simon_sibl> I think its great, I really liked the quicksort one, showed to my colleagues 😆 | 07:17 | ||
|
07:21
sibl left
07:28
sibl joined
|
|||
| disbot2 | <librasteve> thanks for the feedback ,,, that was contributed by a reader … always happy to get suggestions! | 07:31 | |
|
07:40
[Coke] left
07:41
[Coke] joined
07:50
dakkar joined
09:50
dakkar left,
dakkar joined
10:11
sibl left
10:17
sibl joined
10:38
sibl left
16:33
dakkar left
|
|||