[Cuis-dev] Fraction numerator and denominator

Juan Vuletich juan at cuis.st
Sun Jul 7 11:59:15 PDT 2024


On 7/5/2024 1:37 PM, Andres Valloud via Cuis-dev wrote:
> The accessors should be public (and the setters should be private).
>
> I found a couple others that should be recategorized.
>
> On 7/5/24 8:51 AM, Mark Volkmann via Cuis-dev wrote:
>> I was surprised to see that the numerator and denominator instance 
>> methods of the Fraction class are in the private method category. Why 
>> should invoking those be avoided? Perhaps they are considered to be 
>> confusing since they return values from the reduced form of the 
>> fraction. For example, `(4 / 6) numerator` returns 2 because the 
>> reduced form of the fraction is `2 / 3`.
>>
>> -- 
>> R. Mark Volkmann
>> Object Computing, Inc.
>>

Thanks. This is now integrated at GitHub.

-- 
Juan Vuletich
cuis.st
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich
linkedin.com/in/juan-vuletich-75611b3
twitter.com/JuanVuletich



More information about the Cuis-dev mailing list