News for hackers. Stuff that matters.
Re:Rust for C++ programmers – part 4: unique pointers by pix64 on Tuesday April 29, 2014 @02:36AM (#7665364)
The 'let' keyword introduces a variable. It's not 'auto'.

You can still declare variables types explicitly: 'let x: int = 5'

'match' is also much more powerful than 'switch'. You can match on several patterns, ranges of numbers, as well as use guards.

http://rustbyexample.com/examples/match/README.html

There are no comments on this comment yet.