3 ms·
WGSL (the shading language for WebGPU) has something similar[1]. For example, `a + b << c` will fail to parse in a conforming implementation, as will `a << b <
by djmcnab 3y ago
WGSL (the shading language for WebGPU) has something similar[1].
For example, `a + b << c` will fail to parse in a conforming implementation, as will `a << b << c` and `a && b || c`. Note however that `a && b && c` does parse. I find these rules to be well-thought through.
[1]: https://www.w3.org/TR/WGSL/#operator-precedence-associativity https://www.w3.org/TR/WGSL/#operator-precedence-associativit...