I thought he was implementing an "operator like" behavior for the string "//", 
I couldn't believe it was really used as an operator in the language; now I see 
that they used "//" as an initRational() "alias" operator.

Well, I consider this a bad preliminary choice, it's confusing clashing 
directly with the already diffused use of // everywhere. Even Python does not 
use this design. So I would drop this use.

Maybe I would just use an smaller alias function name as ratio(1,3) for 
something like 1//3 (which currently translates to the longer 
initRational(1,3). Maybe we could introduce some syntatic sugar like 0r1/3 as a 
literal form for rationals, which also translates to initRational(1,3). 
0rn.../d... , the kind of 0Prefix of other numerical types like 0x for hex, or 
0b for binary, but compound, using a / dividing numerator(n) and denominator(d).

I believe that currently, such change almost does not break anything. 
Rationals, probably are not extensively used in Nim in this pre 1.0 time. 

Reply via email to