Skip to content

Commit ee34834

Browse files
committed
Document coercers don't check result value
Closes RT#132980: https://rt.perl.org/Ticket/Display.html?id=132980
1 parent b534bc1 commit ee34834

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

doc/Type/Signature.pod6

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,11 @@ be omitted.
452452
foo "2016-12-01";
453453
# OUTPUT: «Date␤2016-12-01␤»
454454
455+
The coercion is performed by calling the method with the name of the type
456+
to coerce to, if it exists (e.g. C<Foo(Bar)> coercer, would call method C<Foo>).
457+
The method is assumed to return the correct type—no additional checks on
458+
the result are currently performed.
459+
455460
=head2 X<Slurpy (A.K.A. Variadic) Parameters|parameter,*@;parameter,*%,slurpy argument (Signature)>
456461
457462
A function is X<variadic> if it can take a varying number of arguments; that is,

0 commit comments

Comments
 (0)