Allow guard pattern matching
Open
feature
- Dominant language
- Python
- Stars
- 14
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
New syntax:
```
f(__) =
[] | 0;
"" | 0;
0 | 0;
[ _ ] | __:0;
[ _ , _ ] | __:0 + __:1;
1
```
Old syntax:
```
f(__) =
0 @ __ ?= [];
0 @ __ ?= "";
0 @ __ ?= 0;
__:0 @ __ ?= [ _ ];
__:0 + __:1 @ __ ?= [ _ , _ ];
1
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.