A**=B would be shorthand for A=A**B.
I'm not sure why this isn't implemented. It seems like it'd be an obvious thing to add... There are assignment operators for every applicable operator, except for the ones that return boolean (true or false) values (for obvious reasons), and that one... It seems weird.
I think programmers might have use for a **= assignment operator...
Just a thought.
Naokohiro wrote:
Why is there no **= assignment operator?
Perhaps because it's a more seldom used and avoided operator, and its shorthand assignment operator's symbol would be 3 chars long (longest there is), I suppose. Good catch there, anyway.