As rust 1.0 is almost here, I can point out quite a few things that rust is better than go. However, I don't really see how go is better than rust. As both rust and go are meant to replace C++, they would definitely become rival languages.
So, how is go better than rust?
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
So, how is go better than rust?
As rust 1.0 is almost here, I can point out quite a few things that rust is better than go. However, I don't really see how go is better than rust. As both rust and go are meant to replace C++, they would definitely become rival languages.
So, how is go better than rust?
As rust 1.0 is almost here, I can point out quite a few things that rust is better than go. However, I don't really see how go is better than rust. As both rust and go are meant to replace C++, they would definitely become rival languages.
I would like to clarify and explain a few things.
First, I am sorry for the possibly aggressive wording of the question. I actually meant "I feel that rust is better than go,and I think that these two languages have similar goals. Why do you prefer go?" (Sorry again if that is still bad wording)
As for why I prefer rust over go, this blog post made by someone else http://yager.io/programming/go.html pretty much matches my thoughts. Although I disagree on the sections about type inference and unsafe code, I agree with most of the stuff there.
I was expecting my question to be controversial (aka flamewar-inducing), but I hope that it would be a constructive discussion.
For the replies that actually answered my question, they did actually make me rethink about some stuff. Thank you.
As rust 1.0 is almost here, I can point out quite a few things that rust is better than go. However, I don't really see how go is better than rust. As both rust and go are meant to replace C++, they would definitely become rival languages.
So, how is go better than rust?
--
You received this message because you are subscribed to a topic in the Google Groups "golang-nuts" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/golang-nuts/h4qr1m1EbGQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to golang-nuts...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
I feel that your argument resembles the good old "dynamic vs static typing" debate. (checked by compiler vs testing the program) However, I disagree with some of your points.
Lifetime and borrowing are meant to reduce, not increase, the manual bookkeeping. Most of the time, no bookkeeping is needed, and both the programmer and the compiler are happy. In the harder cases, which are bug-prone, the compiler would warn and the programmer just has to be explicit about the ownership management.
Personally, I find the lifetime rules less confusing than python's scope rules, but it might be just that my thought process is weird.
You might want to read this http://doc.rust-lang.org/guide-ownership.html
Actually, I view rust as a procedural language plus the type system of functional languages. However, your argument made me realize one more thing in common between the two languages.
I think rust will get people from statically typed languages that want to step up in safety, just the same way as people from dynamically typed languages move to go.
On the other hand, I feel that the philosophy of go is almost the same as of the various lisp languages. The problem is, I don't understand them either.
--
You received this message because you are subscribed to a topic in the Google Groups "golang-nuts" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/golang-nuts/h4qr1m1EbGQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to golang-nuts...@googlegroups.com.
Thank you. That page you linked (which contains quite some well-informed posts and some confusing posts) made me realize that I missed quite a few (a lot?) of warts in rust. I will rethink about those problems.
Thank you
Dave