bytecodealliance / bytecodealliance/wasmtime

ISLE feature request: `when` and `unless`

Open
#6,082 5 comments 0 reactions 0 assignees View on GitHub
isle
Dominant language
Rust
Stars
18.6k
Forks
1.8k
Avg merge
1d 18h
Merged PRs (30d)
126

Description

#### Feature

Add `(when )` and `(unless )` syntax as shorthand for `(if-let $true )` and `(if-let $false )` respectively

#### Benefit

Less to type when adding boolean conditions to rules

#### Implementation

Should be simple to implement as a syntax sugar rewrite in the ISLE compiler. I would be happy to implement it myself.

#### Alternatives

Leave ISLE unchanged

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.