Summary
Currently, no programming language accepts pattern matching in variables.
Problem
It's very verbose to use pattern matching on variables, so today I propose creating pattern matching for variables.
Proposed Solution
adopt the use of syntax
x will have y+1 only if y is greater than 8.
x is Option
Impact Area
Mark the area most affected:
Example
func main() : (){
let y = 10;
let x { y > 7 } = 20;
()
}
Summary
Currently, no programming language accepts pattern matching in variables.
Problem
It's very verbose to use pattern matching on variables, so today I propose creating pattern matching for variables.
Proposed Solution
adopt the use of syntax
x will have y+1 only if y is greater than 8.
x is Option
Impact Area
Mark the area most affected:
Example