Comment on Why should I use rust (as a Go enthusiast)?

technom@programming.dev ⁨1⁩ ⁨year⁩ ago

The main issue for me is the syntax, specifically generic types, traits, and lifetimes.

After working almost exclusively with Go for years, reading it seems unnecessarily demanding.

Like someone else said, this is a complex subject to answer. The syntax looks perplexing and frustrating, until it doesn’t. These days, Rust syntax is nowhere in my thought while coding - it like when you drive, you are thinking about where you want to go rather than about manipulating the controls.

Why should I learn and use rust?

Rust’'s rules are about enforcing memory safety. But it also ends up forcing you to write better programs than what you imagined you could. It’s hard to describe that feeling - you have to experience it. That alone is a good reason to learn it - even if you end up not using it in the future.

Rust’s unique design also leads to many design patterns not normally seen in most other languages. That’s also worth exploring.

I have fallen in love with Go. It feels like ‘home’ to me

That’s a perfectly good thing. It’s hard to find that sweet spot. However, don’t let that stop you from exploring the alternatives. You might find ideas you could use in Go.

source
Sort:hotnewtop