This is a continuation of the identically named PR in GitHub. I have since rewritten most of the code so that all comparisons are table driven and declared for imperatively, avoiding complex branching in a comparison function. This should also allow additions/modifications to be easier to apply.
See #25275 for details on the design.
I have since then also renamed sub classes to use names instead of numbers to improve readability.
I have also opted to name and, and & as logical_product and bitwise_product respectively to clarify why they have a higher precedence than their sum analog. I am not attached to these names.
This is a continuation of the identically named PR in GitHub. I have since rewritten most of the code so that all comparisons are table driven and declared for imperatively, avoiding complex branching in a comparison function. This should also allow additions/modifications to be easier to apply.
See [#25275](https://github.com/ziglang/zig/pull/25275) for details on the design.
I have since then also renamed sub classes to use names instead of numbers to improve readability.
I have also opted to name `and`, and `&` as `logical_product` and `bitwise_product` respectively to clarify why they have a higher precedence than their sum analog. I am not attached to these names.