Re:Announcing Rust 1.23
by leetcrew on Thursday January 04, 2018 @07:16PM
(#16075384)
> What do you find annoying in it specifically?
not OP, but when people say rust is annoying they are almost always talking about the borrow checker.
coming from c or c++, which allow you to play fast and loose with pointers and types, it can be frustrating to find out that a lot of stuff you would normally do in those languages is not permitted in safe rust code. the flip side is that, once you get the code to compile (in safe rust), you are guaranteed not to invoke undefined behavior. of course, you can just use unsafe blocks if you really need to play around with raw pointers a la C.
my apologies if you already understand rust and my explanation was very obvious to you.
Re:Announcing Rust 1.23
by shmerl on Thursday January 04, 2018 @07:28PM
(#16075441)
I actually see it as a benefit, not something to be annoyed about. And if someone feels too restricted by the borrow checker (like for implementing some library logic), there is unsafe Rust for that.
not OP, but when people say rust is annoying they are almost always talking about the borrow checker.
coming from c or c++, which allow you to play fast and loose with pointers and types, it can be frustrating to find out that a lot of stuff you would normally do in those languages is not permitted in safe rust code. the flip side is that, once you get the code to compile (in safe rust), you are guaranteed not to invoke undefined behavior. of course, you can just use unsafe blocks if you really need to play around with raw pointers a la C.
my apologies if you already understand rust and my explanation was very obvious to you.