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
I didn't know that inferred error sets have identity that makes them compare unequal to all other error sets - it's not currently mentioned in their langref section.
When looking for previous issues on this I found that all error sets used to have identity, which changed with implementing #11022 . A comment there documents that "we're experimenting" with inferred error sets having identity "to ease the implementation of the language specification. It's problematic to make type equality force error set resolution."
If that's still the current stance on the issue, I can accept that it just needs to be documented.
The text was updated successfully, but these errors were encountered:
rohlem
added
the
bug
Observed behavior contradicts documented or intended behavior
label
Jul 29, 2024
Zig Version
0.14.0-dev.617+208baa37c
Steps to Reproduce and Observed Behavior
Repro:
Expected Behavior
I didn't know that inferred error sets have identity that makes them compare unequal to all other error sets - it's not currently mentioned in their langref section.
When looking for previous issues on this I found that all error sets used to have identity, which changed with implementing #11022 .
A comment there documents that "we're experimenting" with inferred error sets having identity "to ease the implementation of the language specification. It's problematic to make type equality force error set resolution."
If that's still the current stance on the issue, I can accept that it just needs to be documented.
The text was updated successfully, but these errors were encountered: