Skip to content

What does the underlyingType() represent? #116

@othercorey

Description

@othercorey

I'm looking at converting the previous ClassString types I added to psuedo-types. However, I'm not sure how PsuedoType is expected to be used.

underlyingType() returns an empty instance of the type, but False_ and True_ already extend that type. What is the use case for underlyingType()? Is it always supposed to be an empty instance of a type? I'm curious why a type string isn't used instead.

For ClassString which represents a string, but also provides an FQSEN if the class-string includes one, would underlyingType be new String()?

Should psuedo-types always extend the underlying type?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions