FlatLang / Flat

(Deprecated) Soon-to-be legacy Flat compiler all in one
6 stars 0 forks source link

Update match statement syntax #366

Closed BSteffaniak closed 7 years ago

BSteffaniak commented 7 years ago

From

match (expr) {
    case expr statement
    case expr statement
    case expr statement
    default statement
}

to

match (expr) {
    expr => statement
    expr => statement
    expr => statement
    expr => statement
    default => statement
}