Message110953
> I don't understand is why a += b is different from a + b
> in this respect.
When a is mutable, a += b updates it in-place, so there is no ambiguity: the type of a cannot change. When you do a + b, there is no reason to treat a as more deserving than b when selecting the type of the result. |
|
| Date |
User |
Action |
Args |
| 2010-07-20 19:07:32 | belopolsky | set | recipients:
+ belopolsky, amaury.forgeotdarc, djc, eric.araujo |
| 2010-07-20 19:07:32 | belopolsky | set | messageid: <[email protected]> |
| 2010-07-20 19:07:30 | belopolsky | link | issue9314 messages |
| 2010-07-20 19:07:30 | belopolsky | create | |
|