On Mon, Aug 31, 2009 at 01:28:08PM -0700, Darren Duncan wrote: > This is a great move; thanks for this change. > > So now writing things like 5/43 in code will DWIM and produce a Rat which > maintains the intended value exactly, with no floating-point imprecision; > and so plain 5/43 is now a plain Rat literal, same as 1.23 is.
FWIW, presently the specification somewhat implies that 1.23 is a Num literal, and doesn't say anything about it producing a Rat. (Yes, conversations on #perl6 have indicated that it may be otherwise, but nothing is currently in the spec about it.) S02:401 : One consequence of all this is that you may no longer write a Num as C<42.> with just a trailing dot. You must instead say either C<42> or C<42.0>. Pm