Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

new compile-time typeof operator #122

@rurban

Description

@rurban

returns the type(s) at compile-time. which is string or list of strings or a list of type expressions.
currently the string comes from the stash name, but in the future a type can also be an object (as in perl6), not a stash. the return value of typeof must be parsable as valid type declaration. so it should honor list context to listify | alternations.

similar to ref, which returns one run-time string, the current type. (but even if the value contains multiple types, only one is returned with ref).
but typeof gets the type from the OP*, not the attached SV*.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions