Skip to content
Auto edited this page May 1, 2022 · 12 revisions

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

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

Home

Philosophy

data & code blocks

features

inventions

evaluation

keywords

iteration

tasks

examples

todo : bad ideas and open questions

⚠️ specification and progress are out of sync

Clone this wiki locally