Stream: general

Topic: Recursive types in wit?


view this post on Zulip Ramnivas Laddad (May 31 2022 at 01:50):

Just started exploring the wit format.

I see that the wit format prohibits recursion (https://github.com/bytecodealliance/wit-bindgen/blob/main/WIT.md#name-resolution). Given this limitation, is it possible to define types required to define a JSON structure (say as an equivalent of https://docs.serde.rs/serde_json/enum.Value.html)?

A language binding generator for WebAssembly interface types - wit-bindgen/WIT.md at main · bytecodealliance/wit-bindgen

view this post on Zulip Dan Gohman (May 31 2022 at 13:53):

Not currently. Wit is aiming to enable developers to describe specific APIs, rather than to accept arbitrary dynamically-typed values that downstream users subsequently recognize as specific APIs.

view this post on Zulip Ramnivas Laddad (May 31 2022 at 15:36):

Thanks for the clarification.

view this post on Zulip Sascha1337 (Jun 11 2022 at 09:55):

happening.rs

view this post on Zulip Daniel Macovei (Jun 11 2022 at 19:59):

That link doesn't work for me


Last updated: Dec 23 2024 at 13:07 UTC