-
-
Notifications
You must be signed in to change notification settings - Fork 4
rust
rant see swift-is-the-better-rust
Rust made verbose ugliness a first class citizen.
pub fn horror()->Result{Ok(Result(mut &self))}
Contrary to mainstream opinion and current hype, rust has an abhorrent verbose syntax.
Look at swift to see how optional types can be expressed beautifully without wrapping everything with ->Result{Ok(Result(mut &self))}
It's this mixture of abbreviations on the one hand and excessive sigils and verbosity on the other that really does not resonate well.
pub fn horror()->Result{Ok(Result(mut &self))}
Functions return results, which may be ok. This should be an invisible assumption of the ABI.
Oddly this ugliness is often mixed with modern expressiveness;
for i in 0 to 10 {}
Implicit return switch case without breaks:
fn value_in_cents(coin: Coin) -> u8 {
match coin {
Coin::Penny => 1,
Coin::Nickel => 5,
Coin::Dime => 10,
Coin::Quarter => 25,
}
}
One has to admit that rust is currently the wasm language with the most momentum, and there are hundreds of promising projects such as
- minecraft: https://github.com/iceiix/stevenarella/issues/171
- a flash player
- ...
Explicitly can be good in systems languages, however
pub fn horror()->Result{Ok(Result(mut &self))}
is just ugly and braindead.
If you want rust without the cancer, switch to swift