Add boolean match expression
Open
feature
- Dominant language
- Python
- Stars
- 4.4k
- Forks
- 142
- PR merge metrics
- No merged PRs in 30d
Description
The code
```
func(head + [tail] match in list)
```
should be equivalent to
```
match [head] + tail in list:
func(True)
else:
func(False)
```
with the exception that the expression version doesn't perform the unnecessary bindings (like `head` and `tail`).
Contributor guide
Assessment
This issue has not been assessed yet.