yasl icon indicating copy to clipboard operation
yasl copied to clipboard

Feature suggestion: Add `symbol` type

Open ghost opened this issue 5 years ago • 0 comments

It's probably the dynamic man's enumeration.

Example:

# symbols might require declaration, either in code or at the host/vm side
symbol $yes, $no, $maybe

fn doSomething(really) {
    # booleans can be replaced by built-in symbols, since they require type and value checks, too
    if really === $yes || really === $true {
        # ...
    }
}

ghost avatar Jun 23 '19 09:06 ghost