Description
I talked today with a few folks and I wanted to write up our thoughts/conclusions into an issue to get some wider feedback before sending a PR to commit to anything. The basic premise is:
- Emoji-gate
error-context
in the explainer document. - Remove
error-context
arguments/integration with futures/streams.
In effect this would defer integration with error-context
until after WASI 0.3.0 has shipped and make error-context
a future addition to WIT and the component model.
Ok, but why? The original motivation for considering this comes from me considering current issues such as #469 and #472. Overall, in my opinion at least, some changes are needed in the spec with respect to error-context. While these can be fixed and resolved in isolation I wanted to bring up a possible broader context of: can we defer it entirely until after 0.3.0?
In talking with @lukewagner one of the chief desires of error-context
is eventual future integeration with the WIT result
type. For example when constructing one you could supply an error-context or when receiving one you could optionally acquire an error-context. Currently result
does not have this integration so it'll have to be designed in a backwards-compatible fashion, and the theory is that such backwards-compatible infrastructure could be equally applied to streams/errors as well.
There's a lot of other various inter-related things that were discussed around this, but that's the crux of the issue effectively. I wanted to open this up before making a PR with the actual changes to get some broader discussion. I know that @vados-cosmonic is probably likely interested in this, and various WASI folks as well.