Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Rust for C++ programmers – part 4: unique pointers. Parent comment
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.
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