Skip to content

Allomorphs are an interface drug #404

@0rir

Description

@0rir

%*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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    languageChanges to the Raku Programming Language

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions