Skip to content

Add new "unit" and "bool" primitive types#204

Merged
alexcrichton merged 1 commit intobytecodealliance:mainfrom
alexcrichton:unit-and-bool
Apr 22, 2022
Merged

Add new "unit" and "bool" primitive types#204
alexcrichton merged 1 commit intobytecodealliance:mainfrom
alexcrichton:unit-and-bool

Conversation

@alexcrichton
Copy link
Member

This splits out the bool type from Variant and additionally adds a
new unit type. The new unit type will need some more tests in the
future and this is just laying the groundwork for it for now. This'll
soon get automatically tested though as the type of each case in
Variant becomes required and functions will also switch to one return
type.

This splits out the `bool` type from `Variant` and additionally adds a
new `unit` type. The new `unit` type will need some more tests in the
future and this is just laying the groundwork for it for now. This'll
soon get automatically tested though as the type of each case in
`Variant` becomes required and functions will also switch to one return
type.
@alexcrichton alexcrichton merged commit ba4ec2e into bytecodealliance:main Apr 22, 2022
@alexcrichton alexcrichton deleted the unit-and-bool branch April 22, 2022 00:02
willemneal pushed a commit to theahaco/wit-bindgen that referenced this pull request May 31, 2022
This splits out the `bool` type from `Variant` and additionally adds a
new `unit` type. The new `unit` type will need some more tests in the
future and this is just laying the groundwork for it for now. This'll
soon get automatically tested though as the type of each case in
`Variant` becomes required and functions will also switch to one return
type.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants