This channel is intended for people just starting with the Raku Programming Language (raku.org). Logs are available at irclogs.raku.org/raku-beginner/live.html
Set by lizmat on 8 June 2022.
_elcaro_ I have a Point module available that supports math ops between points I did think about adding a distance method, but didn't want to assume which distance people want. 01:37
02:50 Rajhan joined
Rajhan Thanks @nemokosch for suggestion, i will use that link 02:53
02:53 Rajhan left 08:20 MasterDuke left 08:51 dakkar joined 09:38 Nemokosch joined, Nemokosch left
ab5tract _elcaro_: one option is create a named paramete that allows the user to specify their preference while also allowing a default 09:41
another would be to make it a multi method and then they specify their preference a little more succinctly 09:43
m: multi sub f() { "default" }; multi sub f(:$choice!) { "you've chosen" }; dd f(); dd f(:choice) 09:45
camelia "default"
"you've chosen"
14:29 mcmillhj joined
librasteve this (overloading of cmp) has worked fine for me 17:31
github.com/librasteve/raku-Math-In...al.rakumod (line 140)
17:35 dakkar left, mcmillhj left 18:30 DarthGandalf left 18:31 DarthGandalf joined 19:20 mcmillhj joined 23:47 swaggboi left