[heycam/webidl] Consider renaming number types to match the equivalent WebAssembly types (#843)

Currently, WebIDL uses **C** names for number types.

This doesn’t match either **ECMAScript** or **WebAssembly**, where the former just uses the generic **IEEE 754** 64‑bit `number` type, and the latter uses `i*` for signed integers, `u*` for unsigned integers and `f*` for **IEEE 754** floating point numbers.

I suggest applying the following renaming:

| Before | After |
| ------: | -----: |
| `byte` | `i8` |
| `octet` | `u8` |
| `short` | `i16` |
| <code>unsigned&nbsp;short</code> | `u16` |
| `long` | `i32` |
| <code>unsigned&nbsp;long</code> | `u32` |
| <code>long&nbsp;long</code> | `i64` |
| <code>unsigned&nbsp;long&nbsp;long</code> | `u64` |
| `float` | `f32` |
| <code>unrestricted&nbsp;float</code> | <code>unrestricted&nbsp;f32</code> |
| `double` | `f64` |
| <code>unrestricted&nbsp;double</code> | <code>unrestricted&nbsp;f64</code> |

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/issues/843

Received on Friday, 14 February 2020 03:16:37 UTC