let r = match argv.get(1) { Some(x) => match x.parse::<i32>() { Ok(v) => v, Err(_) => { show_usage(); panic!() }, }, None => { show_usage(); panic!() } } }
Type explosion is to be expected. Do notation could have been used to keep the control logic as clean as C, but Rust is not HASKAL and never will be anything like HASKAL and you're an asshole for wanting to write readable code you filthy shit fuck.
Name:
Anonymous2015-02-13 1:22
>>1 The rust program handles malformed integers while the c program does not.
Name:
Anonymous2015-02-13 1:45
who the fuck thought std::herpes:::::::::this or <Nigger,<DoubleNigger,Nigger<<<<<<<This>>>>>>>> was a good idea
Name:
Anonymous2015-02-13 1:52
>>2 And it could do that in a way as clean as the C version by using do notation.
>>2 Maybe the programmer shouldn't make the integers malformed? Programmer school, did you flunk?
Name:
Anonymous2015-02-13 3:32
HAHAAHHAHAAHHAHAHDAHASDHUAEGRYAHOINGRHUITRJOEAGHOIHUIOWHAWAHGUIHAAGHRAWEGRHU RUST RUST RUST THE NEW HIP LANGUAGE RUST, I CANT WAIT TIL THE COMPILE RIS MORE MATURE. IM SO EXCITED ABOUT LEARNING RUST. MAYBE TRY RUST? LOOLLOLLOLOLOLOASDFLOASKOASHOKAHFJIOAFOIJ.
>>32 As hard as choosing benchmarks that repeatably measure the impact of an optimization on the entire system in which it is used, and nothing more (such as the impact of the benchmarking method itself).
Name:
Anonymous2015-02-16 2:48
Is Rust the future?
Or will it simply corrode as a language ha ha ha
There are two possibilities:
1. Rust will become a true Systems Language, and will be able to surpass c / c++ in areas where they are truly necessary ( device drivers, embedded etc )
2 It will die, because there are better alternatives available if you want abstractions.
I personally hope the first case will become reality.
Name:
Cudder!MhMRSATORI2015-02-16 2:54
Rust has the potential to be the best language since FORTRAN 77. Too bad it doesn't have GC, which is ESSENTIAL for us 21st Century Programmers.
Name:
Anonymous2015-02-16 3:02
D > Rust > JS > Go > Haskell > OCaml > C > Python > Ruby > Lua > Perl > Bash > HTML > Java > C++ > C# > .NET