Is this valid wit
oint-arg: func(x: option<s32>);
I.e. an option without a type
?
If so, for the codgen, would it be typical to create an implicit type
for it?
I think it is, at least the c codegen does it
typedef struct {
bool is_some;
int32_t val;
} my_world_option_s32_t;
I guess I'm just curious why the c and go codegen have logic for anonymous types but not the others.
A message was moved here from #wit-bindgen > Relation between imported and exported types by Scott Waye.
option
is one of the built-in WIT types and can be used without attaching a name. As for bindings for statically typed languages:
Scott Waye has marked this topic as resolved.
Last updated: Dec 23 2024 at 13:07 UTC