News for hackers. Stuff that matters.
Re:Practical Go: Real-world advice for writing maintainable ... by base698 on Thursday February 21, 2019 @11:59PM (#19223259)
Numerator, denominator?
Re:Practical Go: Real-world advice for writing maintainable ... by mrgriffin on Friday February 22, 2019 @04:54AM (#19224203)
For GCD? I would find those names very misleading since semantically the order of the arguments to GCD is irrelevant (even if in the implementation you typically mod by b there's no reason you couldn't mod by a).
Re:Practical Go: Real-world advice for writing maintainable ... by sacado2 on Friday February 22, 2019 @05:36AM (#19224351)
This is not mathematically correct. Those names would be pretty misleading, actually.
Re:Practical Go: Real-world advice for writing maintainable ... by coldtea on Friday February 22, 2019 @12:37AM (#19223384)
Good luck with any bigger equation then