|
|
|
|
|
by pix64
4429 days 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 |
|