On 2018-10-12, Öö Tiib <
oot...@hot.ee> wrote:
> On Friday, 12 October 2018 21:33:53 UTC+3, Lynn McGuire wrote:
>> "Rust vs. C++ Comparison"
>>
>>
https://www.codeproject.com/Articles/1263195/Rust-vs-Cplusplus-Comparison
>>
>> Very informative. Interesting but not gonna happen.
>
> What is not going to happen? Rust works and about as efficiently as C++
> and C. It is indeed bit annoying to program in Rust. But some like
> those inconveniences.
Rust is not an OO language. Also it does not have pointer arithmetic,
so if you want it you have to cast to integer then add, then convert
back to pointer.
traits in Rust are mainly used as constraints for generic functions.
You can't implement doubly linked list with safe code and almost
anythingi at that.
Language is not stable at all. What you compile by stable version
won't compile with nightly and vice versa.
But it is good in a sense that it borrowed from functional languages.
Also, macros are better.
after moving object, destructor won't be called
of moved object. And lot of other things are nice.
here are my two repos one is trees other is scimark2 in Rust:
https://github.com/bmaxa/trees_rust
https://github.com/bmaxa/scimark2rust
You can't see that indeed that you can program unsafely in Rust ;)
--
press any key to continue or any other to quit...