Skip to content

Conversation

@Vexu
Copy link
Member

@Vexu Vexu commented Oct 1, 2023

Closes #17343

@ghost
Copy link

ghost commented Oct 1, 2023

Shouldn't it also be renamed to @errorCast? Error sets and error unions are two distinct things aren't they? I think a good way to sum it up is just calling it "error" hence @errorCast (and also not @errCast for consistency with the other builtin names that spell "error" out in full). Or should it be a separate builtin?

@Vexu Vexu force-pushed the errSetCast branch 3 times, most recently from 1fbe182 to d81b764 Compare October 1, 2023 12:09
@andrewrk andrewrk merged commit 8e1421f into ziglang:master Oct 1, 2023
@Vexu Vexu deleted the errSetCast branch October 1, 2023 19:23
@andrewrk
Copy link
Member

andrewrk commented Oct 1, 2023

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.

@errSetCast refuses to accept an error union operand

2 participants