Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> First, please don't compare Go and Rust. They are completely different languages with completely different target use cases. Go has very different design goals than Rust, so very little that Rust does would actually be possible in Go, and vice versa.

It's perfectly reasonable to compare any two programming languages, especially where their use cases overlap.

> As for the code you're referring to, Go is not designed to be a language which prevents you from shooting yourself in the foot with provable code. It's designed to be a language which makes it reasonably easy to be sure you haven't, as long as you follow the general idioms and best practices. What you're describing here is definitely not one - I can think of a few instances in which pointers might be reasonably passed over a channel, but they're few and far between.

Absolutely sure is better than reasonable sure.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: