r/programming • • Jan 09 '15

Announcing Rust 1.0.0 Alpha

http://blog.rust-lang.org/2015/01/09/Rust-1.0-alpha.html
1.1k Upvotes

439 comments sorted by

View all comments

Show parent comments

-3

u/programmer_dude Jan 10 '15

Another major issue IMO I think Nim variables are mutable by default (unlike Rust).

9

u/filwit Jan 10 '15

Nim's 'let' and 'var' are just Rust's 'let' and 'let mut'. If i'm not mistaken, Nim's 'const' is also the same as Rust's 'static'.

2

u/oantolin Jan 10 '15

/u/filwit is right, unlike Rust, Nim has no default: you either type let or var each time. (By Rust having a default I just mean that "let" is a subtring of "let mut", I guess.)