Skip to content

function to check type #95

@stdweird

Description

@stdweird

currently we have a bunch of code that does things like

function is_type_x = {
    if(something(ARGV[0]){ 
       return(false)
   }
   true;
}

type type_x = string with is_type_x(SELF);

this is typically used to make new types out of sub-types like

type type_xyz = string with {
    if(is_type_x(SELF)) return(true);
    ....
}

it would make a lot of sense to be able to test the type directly like

type type_xyz = string with {
    if(is_type(type_x, SELF)) return(true);
    ....
}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions