[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
## Re: Arithmetic assignment side-effects

**From**: |
Chris Down |

**Subject**: |
Re: Arithmetic assignment side-effects |

**Date**: |
Sun, 4 Aug 2013 22:53:27 +0200 |

**User-agent**: |
Mutt/1.5.21 (2010-09-15) |

On 2013-08-04 22:41, Andreas Schwab wrote:
>* x+=a is the same as x=x+a.*
In most cases I'd agree, in this case I think it changes the logic when
considering += as an atomic increment (which, of course, += isn't, but
aesthetically it presents itself as such) as opposed to two separate operations.
>* Now replace a by (x=1) and it becomes obvious that 1 is a perfectly valid*
>* outcome.*
Yes, I agree, it becomes ambiguous when described in this fashion. I think the
aesthetics of x+=y vs x=x+y are important here.

**
**`pgpRoAquem5H_.pgp`

*Description:* PGP signature

**Arithmetic assignment side-effects**, *Dan Douglas*, `2013/08/03`
**Re: [ast-users] Arithmetic assignment side-effects**, *Roland Mainz*, `2013/08/03`
**RE: [ast-users] Arithmetic assignment side-effects**, *Janis Papanagnou*, `2013/08/03`
**Re: Arithmetic assignment side-effects**, *Chris Down*, `2013/08/04`
**Re: Arithmetic assignment side-effects**, *Andreas Schwab*, `2013/08/04`
**Re: Arithmetic assignment side-effects**,
*Chris Down* **<=**
**Re: Arithmetic assignment side-effects**, *Linda Walsh*, `2013/08/04`
**Re: Arithmetic assignment side-effects**, *Dan Douglas*, `2013/08/05`
**Re: Arithmetic assignment side-effects**, *Linda Walsh*, `2013/08/05`
**Re: Arithmetic assignment side-effects**, *Andreas Schwab*, `2013/08/05`
**Re: Arithmetic assignment side-effects**, *DJ Mills*, `2013/08/05`
**Re: Arithmetic assignment side-effects**, *DJ Mills*, `2013/08/05`
**Re: Arithmetic assignment side-effects**, *Andreas Schwab*, `2013/08/06`
**Re: Arithmetic assignment side-effects**, *Dan Douglas*, `2013/08/06`
**Re: Arithmetic assignment side-effects**, *Andreas Schwab*, `2013/08/06`
**RE: [ast-users] Arithmetic assignment side-effects**, *Janis Papanagnou*, `2013/08/06`