bytecodealliance / bytecodealliance/wasmtime

ISLE: support primitive type definitions without naming the primitive type twice

Open
#3,728 1 comment 0 reactions 0 assignees View on GitHub
enhancement isle
Dominant language
Rust
Stars
18.6k
Forks
1.8k
Avg merge
1d 18h
Merged PRs (30d)
126

Description

Right now:

```lisp
(type (primitive ))
```

If `MyIsleType == MyRustType` then we should support just doing:

```lisp
(type MyType (primitive))
```

I just spent too much time debugging ISLE generating the "wrong" type when I copy-pasted a primitive type definition and changed the ISLE name without also changing the name inside `(primitive ...)`. This short-hand syntax, which is what I want 100% of the time thus far, would have prevented this bug from occurring.

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.