yasl icon indicating copy to clipboard operation
yasl copied to clipboard

Add `&` pattern

Open CoffeeTableEspresso opened this issue 4 years ago • 0 comments

so something like

match x {
    let x & [ ... ] {
        echo "list: #{x}"
    }
    * {
        echo 'not a list'
    }
}

This should have tighter precedence than | and also allow () for grouping, so x & y | z (for patterns x, y, z) is the same as (x & y) | z.

CoffeeTableEspresso avatar Jun 30 '20 21:06 CoffeeTableEspresso