-
Notifications
You must be signed in to change notification settings - Fork 13
Description
%*SUB-MAIN-OPTS<coerce-allomorphs-to>
seems to address part of a problem. That problem is that allomorphs are only great when you need them, which is likely an external interface. When writing strictly typed OO they can be an unwanted type.
no allomorphs
, use coerce-allomorphs numerically
, and use coerce-allomorphs Str
are hints to possible changes, while use allomorphs
and no coerce-allomorphs
could restate current behavior.
Just one scenario:
Given a bunch of multi X( Int $a) {...}; multi X( Str $a) {...}
a pragma around them, and/or upstream in the data flow, could be a concise fix for multiple ambiguous calls.
In simple cases, a pragma might alter my @a = < 1 2.1 3>
to either side. It is a coarsely grained approach to the generalized task.