Skip to content

Commit ccfafec

Browse files
committed
[CaR Grant] Do not offer :U .Rat/.FatRat coercers on MidRat
To be consistent with similar coercers on other numerics
1 parent 824d780 commit ccfafec

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

doc/Type/MidRat.pod6

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,25 +62,21 @@ say (sqrt2 * 10⁶⁰).^name; # OUTPUT: «Rat␤»
6262
6363
Defined as:
6464
65-
multi method FatRat(MidRat:U: --> FatRat:U)
66-
multi method FatRat(MidRat:D: --> FatRat:D)
65+
method FatRat(MidRat:D: --> FatRat:D)
6766
6867
Coerces the invocant to a L<FatRat> object by creating a L<FatRat> with the
69-
same L<numerator> and L<denominator> as the invocant. If the invocant is
70-
a type object, simply returns a L<FatRat> type object.
68+
same L<numerator> and L<denominator> as the invocant.
7169
7270
=head2 method Rat
7371
7472
Defined as:
7573
76-
multi method Rat(MidRat:U: --> Rat:U)
77-
multi method Rat(MidRat:D: --> Rat:D)
74+
method Rat(MidRat:D: --> Rat:D)
7875
7976
Coerces the invocant to a L<Rat>. If the denominator fits into C<uint64>, no
8077
precision loss occurs and a L<Rat> object with the same L<numerator> and L<denominator> as the invocant is returned. Otherwise, an operation equivalent
8178
to coercing the invocant to a L<Num> and then coercing that L<Num> to a L<Rat>
82-
is performed. If the invocant is
83-
a type object, simply returns a L<Rat> type object.
79+
is performed.
8480
8581
=head2 method perl
8682

0 commit comments

Comments
 (0)