You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
where the syntax using {} rather than parens is intended to call out that this can return and is not just a function call (while still being implementable).
I ended up with a slightly different syntax that is a bit more robust to parsing problems (i.e. it gives less inexplicable errors if you get the syntax incorrect). The initial macro name needs to be try_unwrap because unwrap is also used in Boost headers, and that caused problems with the macro being expanded unintentionally. I also added some other variants as documented in #6554.
Example based on https://github.com/zcash/zcash/pull/6524/files#r1166886694 :
It should be possible to write this as something like:
changeAddr = unwrap { /* a tl::expected<ChangeAddress, AddressResolutionError> */ } or_return;
where the syntax using
{}
rather than parens is intended to call out that this can return and is not just a function call (while still being implementable).See also:
The text was updated successfully, but these errors were encountered: