Hacker News new | ask | show | jobs
by umanwizard 442 days ago
Meanwhile, start a rust project, and:

* everyone agrees to use Cargo

* everyone agrees to use `cargo test` (what even is a “testing framework”)?

* everyone agrees to use `cargo fmt`

What’s the advantage of go here?

By the way, the formatting situation is actually worse in Go because there are both gofmt and gofumpt used in the wild, at least gofmt has different behavior depending on different flags, and there are additional linters people use to e.g. ban long lines that for some reason the formatters don’t cover.

2 comments

Yes, Rust copied all those good ideas from Go, so this is an odd argument to use.

I don't know why we're talking about Rust in the first place, but an obvious advantage would be compilation time and iteration speed in general.

The rust team will be bikeshedding a borrow checker error and debating if using unsafe is appropriate for some time after this, though.