3 ms·
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 powerfu
by pix64 12y ago
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 http://rustbyexample.com/examples/match/README.html