in reply to Re^9: Small Perl 6 discoveries II, Rats
in thread [Perl6] Small discoveries I, __DATA__

It makes sense that the compiler would be disappointed but that's because you told it to expect a Rat on the LHS but then put a FatRat on the RHS and "Arithmetic operations involving a FatRat and optionally Int or Rat objects return a FatRat, avoiding loss of precision."
  • Comment on Re^10: Small Perl 6 discoveries II, Rats

Replies are listed 'Best First'.
Re^11: Small Perl 6 discoveries II, Rats
by Anonymous Monk on Oct 28, 2017 at 06:48 UTC
    What, then, should I declare as the type of my variable? There seems to be no good choice.