bytecodealliance / bytecodealliance/wasmtime
ISLE feature request: `when` and `unless`
Open
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
Assessment
This issue has not been assessed yet.