4 ms·
This will be a much weaker argument after the Go 1.18 release with generics. Should have argued performance. > Rust vs Go: advantages > Go lacks expressivenes
by duck_bacon 5y ago
This will be a much weaker argument after the Go 1.18 release with generics. Should have argued performance.
> Rust vs Go: advantages
> Go lacks expressiveness. Rust has a flexible and expressive system that allows for defining new container types that can hold different types of elements, generics, traits, algebraic data types. Go gives you less control over both resources and memory.
- friedman23 5y agoIf you think generics are going to solve the problem with expressiveness in Go you are sadly mistaken. How do you declare a type that is either type A or type B? Something as basic as that is impossible in Go.
- rob74 5y agoAnd it sounds pretty biased too. Sure, in Go (and other garbage-collected languages) you have less control over resources and memory, but you know what? Sometimes you don't want to worry about resources and memory! And, for most real-world applications, the small performance hit caused by not having this total control is more than acceptable...