News for hackers. Stuff that matters.
Re:Partial Operator Precedence by kmill on Thursday November 05, 2026 @10:34AM (#50380421)
> is an error if op1 is unequal to op2 and they have the same precedence. Do I see that right?

It doesn't look like it works that way; only some operator classes are "unchainable".

An older PR description gives more information: https://github.com/ziglang/zig/pull/25275 (There's also a small mention of keyword operators, which I presume `orelse` is. There's a nice diagram showing the precedence classes here: https://codeberg.org/ziglang/zig/pulls/30160#issuecomment-20...)

There are no comments on this comment yet.