Stream: git-wasmtime

Topic: wasmtime / PR #4241 Accept `(tuple)` and `unit` as `()` i...


view this post on Zulip Wasmtime GitHub notifications bot (Jun 07 2022 at 19:37):

alexcrichton opened PR #4241 from unit-and-tuple-same to main:

This commit updates the implementation of ComponentType for () to
typecheck both the empty tuple type in addition to the unit type in
the component model. This allows the usage of () when either of those
types are used. Currently this can work because we don't need to
currently support the answer of "what is the type of this host
function". Instead the only question that needs to be answered at
runtime is "does this host function match this type".

<!--

Please ensure that the following steps are all taken care of before submitting
the PR.

Please ensure all communication adheres to the code of conduct.
-->

view this post on Zulip Wasmtime GitHub notifications bot (Jun 07 2022 at 19:37):

alexcrichton requested fitzgen for a review on PR #4241.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 07 2022 at 22:17):

fitzgen submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 07 2022 at 22:58):

alexcrichton merged PR #4241.


Last updated: Nov 22 2024 at 17:03 UTC