13.07.13 00:27, Joshua Landau написав(ла):
I agree. But how is it related to ½ and 3.(142857)?
½ === 1/2; thus is an expression
0.5 === 5/10. Isn't it an expression?
AFAIK children teach 3.(142857) before ∞. I'm sure people use fractions and recurring decimals more often than infinity.3.(142857) is more ambiguous, because there's not actually any
mathematical operator in place. But it is too much parsing for no
benefit, AFAICT; you would complicate something simple to solve almost
no use-cases, and then when they are used it's harder for people to work
out what is meant.
½ requires no more parsing code then ∞.The informal definition for "expression" with regards
to int and float I'm using is basically the measure of how much more
parsing code would need to be implemented.