4 karma · joined Oct 6, 2014 (12y ago) · 5 submissions
comment 11y ago · link · parent
Assuming a society must consist of humans, a peaceful society depends on the existence of a society and thus the existence of humans, so you can't just kill everyone.
comment 12y ago · link · parent
With 64GB inbuilt, I don't really see that as a problem, but for my 16GB N5 and N7, it's annoying at times. Also, file transfer on Linux is... improvable. I use adb to push my music onto the phone. :P
comment 12y ago · link · parent
However, I would have expected rustc to complain about unused variables in
fn main() {
for i in range(1i, 101) {
match (i % 3, i % 5) {
(0, 0) => println!("Fizzbuzz"),
(0, a) => println!("Fizz"),
(b, 0) => println!("Buzz"),
c => println!("{}", i),
}
}
}
but neither the playpen nor yesterdays snapshot complains. And if you want to suppress warnings about unused variables, you prefix the variable with an underscore, or just use only the underscore, which got common to mean "I don't care what value gets bound to this name.". fn main() { let a = 0u; }
compiles with warning: unused variable: `a`, but fn main() { let _a = 0u; }
compiles silently.