-
-
Notifications
You must be signed in to change notification settings - Fork 4
rust
pannous edited this page Feb 9, 2021
·
12 revisions
IMHO rust has an abhorrent verbose syntax. Look at swift to see how optional types can be expressed beautifully without wrapping everything with pub fn horror()->Result{Ok(Result(mut &self))}
Rust made verbose ugliness a first class citizen.
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
- ...
If you want rust without the cancer, switch to swift