15 May
2021
15 May
'21
1:02 a.m.
On 14/05/2021 22:34, Eric V. Smith wrote:
My understanding of the proposal is that OP is only talking about <literal-integer> / <literal-integer> becomes a Fraction. So:
x=1 x/2 # unchanged, still yields a float.
It's only literals like "1/2" that would become Fraction(1,2).
This would appear to limit the usefulness of the proposal. If you actually wanted x/y to yield a fraction when x and y were integers, you would need an explicit syntax such as Fraction(x,y) or F(x,y) anyway. So what's the big deal about having to write Fraction(1,2) or F(1,2) ? Rob Cliffe