yasl
yasl copied to clipboard
Feature suggestion: Add `symbol` type
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 {
# ...
}
}