bytecodealliance / bytecodealliance/wasm-tools

wit: Migrate from `float32`/`float64` to `f32`/`f64`

Open
#1,361 4 comments 0 reactions 0 assignees View on GitHub
component-model wit
Dominant language
Rust
Stars
1.8k
Forks
351
Avg merge
1d 6h
Merged PRs (30d)
46

Description

Per the discussion in https://github.com/WebAssembly/component-model/issues/277, there seems to be consensus for migrating the names of the types `float32` and `float64` to `f32` and `f64`.

A plan for `f32`/`f64` is:
- [x] Make wit-parser accept `f32` and `f64` as aliases for `float32` and `float64`. https://github.com/bytecodealliance/wasm-tools/pull/1356
- [x] Wait until that's in a release and the major tools have updated.
- [ ] Update Wit files, documentation, pretty-printers, etc. to `f32`/`f64`.
- [ ] After some time, add a deprecation warning for `float32`/`float64` pointing users to `f32`/`f64`
- [ ] After some time, remove `float32`/`float64`

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.