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.
ab5tract I think it’s a fair question, actually. I think if we chose to produce Ints from Int.comb, it would be a fairly reasonable choice. But it could also be considered too magical. I think the dealbreaker is Num.comb: would it produce Ints? What about the decimal point? 20:30
So the principal of least surprise actually errs on keeping it stringy here, despite it being somewhat surprising that Int.comb outputs Str 20:32
*principle
librasteve all questions are fair, but coming from the fact that The integer 123 in binary is 1111011. then the act of combing an Int means taking the decimal (?) digits one by one and then putting them in a Seq - so (even absent Num) 123.comb => (1,2,3).Seq is assuming a decimal representation of your Int and somehow taking each digit one by one. Since this is what .Str does for a living, I think that confining 20:38
.comb to coerce to Str() is a good design.
ab5tract Did you see the part where I agree? 20:39
librasteve oh sorry - didn't mean to be critical (and my comment sure reads back that way) - I apologise 20:41
happy to agree
21:42 MasterDuke joined
ab5tract Cheers :) 22:47
22:53 tbrowder left 22:55 tbrowder joined