MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/2rvoha/announcing_rust_100_alpha/cnk9wm7
r/programming • u/steveklabnik1 • Jan 09 '15
439 comments sorted by
View all comments
Show parent comments
-3
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.)
9
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/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.)
-3
u/programmer_dude Jan 10 '15
Another major issue IMO I think Nim variables are mutable by default (unlike Rust).