Commit 87fd129
spec: align IDL-Motoko.md with Float32 support (#6094)
## Summary
- Adds `e(Float32) = float32` and `i(float32) = Float32` to the type
mapping tables.
- Removes the note that said importing `float32` was
unsupported/failing.
## Why
`Float32` support was shipped in #5906, which updated both
`idl_to_mo.ml` and `mo_to_idl.ml` to handle the `float32 ↔ Float32`
mapping. The spec doc (`design/IDL-Motoko.md`) was not updated at the
time, leaving it contradicting the implementation.
This is a companion to a fix in
[dfinity/candid](https://github.com/dfinity/candid/pull/new/fix/motoko-binding-float32)
where `didc bind --target mo` panics on any `.did` file containing
`float32`, because it (correctly) follows the now-outdated spec.
Made with [Cursor](https://cursor.com)
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent c9b3b23 commit 87fd129
1 file changed
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| 88 | + | |
88 | 89 | | |
89 | 90 | | |
90 | 91 | | |
| |||
135 | 136 | | |
136 | 137 | | |
137 | 138 | | |
138 | | - | |
| 139 | + | |
139 | 140 | | |
140 | 141 | | |
141 | 142 | | |
| |||
256 | 257 | | |
257 | 258 | | |
258 | 259 | | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | 260 | | |
263 | 261 | | |
264 | 262 | | |
| |||
0 commit comments