[rust-dev] Porting a small DSP test from C++ to Rust: Comments and performance observations

Huon Wilson dbau.pp at gmail.com
Tue Jun 10 16:08:33 PDT 2014

On 11/06/14 07:42, Steve Klabnik wrote:
>> Rust doesn't have prefix/postfix increment? Or, I just didn't find the right syntax of using it?
> It does not. x = x + 1. Much more clear, no confusion about what comes
> back. Tricky code leads to bugs. :)

FWIW, primitive types offer `x += 1`, and #5992 covers extending this to 
all types.



More information about the Rust-dev mailing list