evhub / evhub/rabbit

Allow guard pattern matching

Open
#73 1 comment 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.