3 ms·
I think the assumption that addition is commutative in any context simplifies the spec rather than makes it more complex.
by Koshkin 6y ago
I think the assumption that addition is commutative in any context simplifies the spec rather than makes it more complex.
- mschuster91 6y agoIt however is not "natural" for someone who doesn't know the obscure bits of history in a standard written many decades ago. Someone writing, say, a static code analysis tool or an IDE may not assume that it is possible that in the expression `a[b]` a may be something else than a pointer / array.
- Koshkin 6y agoBut pointer arithmetic is not "obscure bits of history."
- chrisseaton 6y ago> Someone writing, say, a static code analysis tool or an IDE may not assume If you're writing a static analysis tool or an IDE then I think it's fine to expect you to read the spec.