evhub / evhub/coconut

Add boolean match expression

Open
#253 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.