Re: Motion 46: finalise interval literals, amendments
On 2013-07-08 23:59:05 -0700, Dmitry Nadezhin wrote:
> Perhaps, there is an issue with leading zeroes in ratNumLit .
> Let's take ratNumLit "010/011". It's value is 10/11 .
> However, some languages treat leading zero as start of octal number,
> so some users may expect that the value of the literal is 8/9 .
>
> Will it be safer if we forbid leading zeros in ratNumLit ?
I think so.
And should there be a limit on the size of the integers?
Otherwise an arbitrary precision library may be needed to
evaluate (simplify) rational numbers.
--
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)