2013/8/26 Daniel Micay <[email protected]>

> On Mon, Aug 26, 2013 at 5:36 PM, Flaper87 <[email protected]> wrote:
> > I also think Python's argumented assignments are fine and both a += b vs
> a +
> > b should behave differently. I personally read a += b as an atomic,
> > thread-safe operation whereas a + b isn't and I beleive that's the way it
> > shoud be. Expanding a += b to a + b doesn't sound right to me.
> >
> > Anyway, that's my $0.02.
> >
> > FF
>
> In C/C++/Python/Rust, `+=` isn't an atomic operation.


T_T, I knew that, bad wording from my side.


> Although, in the
> safe subset of Rust code there's no way to race on mutable data due to
> the inability to share it without locking.
>

I believe this is good, I wasn't sure though.

FF

-- 
Flavio (@flaper87) Percoco
http://www.flaper87.org
http://github.com/FlaPer87
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to