|
> Is it a better bet to move on and go full Rust, rather than bother with wherever the goggle golang train is headed? Ecosystem aside, with Rust you'll get far better language design (generics fully integrated with everything (stdlib, consts, all libraries), sane error handling, sane dependency management, no "any" type, editions, and more. More complexity too though. > Certainly some problems will benefit from the addition of generics, but is it really enough to justify the added complexity? Coming from languages that have them, it's just hard to take Golang seriously,
where every library either ditches type safety (more runtime errors I wouldn't have with other language), or forces you to copy-paste code just because you need support for some new type (more boilerplate to maintain == more errors).
Or reinvents generics with code generation and aboriginal characters. Once you start using generics, they really aren't complex. |
Some people judge the language on their ability to get work done with it.
I get generics, but they really don't come up in daily use with the tasks where I use Go. Yes, it would be nice for writing some libraries but you're going through a laundry list of Rust features which don't hamper my ability to get work done at all.
I even like Rust, but if I'm going to write a worker that will read from a queue, do a transformation and write to a few more queues/services upon completion, Go just works and the turn around time is far better than Rust. It's like was Perl was for Unix, but for the cloud instead.