4 ms·
> (what you wouldn't be able to do in C or C++) I would and many more people also would but for sure it would be harder/more complex in C/C++ than in Go. You
by lossolo 10y ago
> (what you wouldn't be able to do in C or C++)
I would and many more people also would but for sure it would be harder/more complex in C/C++ than in Go. You wrote that as it would be impossible to do it in C or C++ which is not true.
- shadowmint 10y agoThey're referring to memory safety, which isn't possible in C/C++* and is in rust. (and in go and java and js, yes; but not in C/C++ or any other low level language) (* without external formal verification, which makes it technically possible I suppose, but not as a built-in feature)
- stymaar 10y agoOf course it's possible to do the same thing in C, but most likely not with «the same amount of code», nor with «memory safety». ;)
- lossolo 10y ago> nor with «memory safety» I've wrote that you can do it with memory safety which is possible BUT it's more complex in languages like C/C++ that do not guarantee memory safety (it's your responsibility). If it was not possible then you would not have anything on your screen right now. I am writing that because someone that is not familiar with those languages would get impression from your comment that memory safety is impossible in C/C++ which is not true.