3 ms·
While I'm naively familiar with Go's type system I'm not at all familiar with Rust's, so i'll defer to you on this... That said, could you explain how Go's typ
by pdeuchler 12y ago
While I'm naively familiar with Go's type system I'm not at all familiar with Rust's, so i'll defer to you on this...
That said, could you explain how Go's type system is weaker than Rust's?
- chrismorgan 12y agoThe biggest thing is the lack of generics. That alone is enough to absolutely destroy any plans for a fancy ORM. Any such thing will end up using interfaces with type assertions everywhere.
- steveklabnik 12y ago(unintentionally) Mutable state passing over a concurrency boundary is a compile-time error in Rust. Two threads cannot mutate the same data unless you explicitly mark it as such, and by doing so, you'd force it through a mutex. This basically means data races are impossible.