Stream: wit-bindgen

Topic: ✔ tuple and record


view this post on Zulip Scott Waye (Dec 27 2023 at 22:18):

Is tuple just a specialization of a record (with 2 fields) ? Or is there something more ?

view this post on Zulip Scott Waye (Dec 27 2023 at 22:24):

or reading a bit more, looks like Tuples can have 1 more more fields, but they are unnamed, and that is the difference.

view this post on Zulip Lann Martin (Dec 28 2023 at 14:02):

At the ABI level yes: tuples (along with flags, enums, options, results, and strings) are equivalent to certain despecialized types.

view this post on Zulip Lann Martin (Dec 28 2023 at 14:13):

At higher levels they are entirely distinct types afaik.

view this post on Zulip Notification Bot (Dec 28 2023 at 14:35):

Scott Waye has marked this topic as resolved.


Last updated: Dec 23 2024 at 12:05 UTC