3 ms·
As I recall, a C compiler is not required to realize that a -- b would be valid if parsed as a - (- b) so creating this operator would be equally feasib
by prodigal_erik 16y ago
As I recall, a C compiler is not required to realize that
a -- b
would be valid if parsed as
a - (- b)
so creating this operator would be equally feasible. Though I don't think exponentiation is common enough to need one, especially in C where you couldn't overload it for rationals or bignums.
- mooism2 16y agoThe point is that a**b may occur in existing code, and mean a * (*b) Introducing a double-star operator would break this code.