News for hackers. Stuff that matters.
Re:Go best practices, six years in by valarauca1 on Sunday May 01, 2016 @07:45PM (#11608381)
>I feel like I'm relearning C++

Because you are. You likely wrote widly unsafe things which are perfectly legal in C++. Rust is really just enforcing RAII which C++14 already has, and you've likely avoided.

Re:Go best practices, six years in by catnaroek on Monday May 02, 2016 @01:40AM (#11609383)
C++has had RAII for decades already. Actual Rust innovations are the borrow checker and dynamically sized types.
Re:Go best practices, six years in by pjmlp on Monday May 02, 2016 @02:21AM (#11609487)
Yes, we were already using it on Windows to program COM in the mid-90's.
Re:Go best practices, six years in by cwzwarich on Monday May 02, 2016 @03:39AM (#11609775)
The borrow checker is predated by Cyclone and other work on region systems. Rust added more polish, but none of the basic ideas are new.
Re:Go best practices, six years in by catnaroek on Monday May 02, 2016 @03:53AM (#11609823)
Of course, I'm aware that work on region systems dates back to the mid 90's, which is why I called Rust's borrow checker an “innovation” (the first time a product form factor or feature successfully makes it into a market) rather than an “invention” (coming up with a product concept that didn't exist before).
Re:Go best practices, six years in by MereInterest on Sunday May 01, 2016 @09:07PM (#11608637)
Wait, people avoid RAII? With how useful it is in every circumstance, I can't imagine C++ without it.
Re:Go best practices, six years in by weberc2 on Monday May 02, 2016 @04:57PM (#11615541)
It's not just the safety features; it's the syntax, the build system, the numerous kinds of strings, the difficulty of finding up-to-date documentation, etc. Rust just has a steeper learning curve than many newer languages. This is not to say that the learning curve is unjustified; only that it exists and is significant.
Re:Go best practices, six years in by weberc2 on Monday May 02, 2016 @09:35PM (#11617202)
Regarding safety, we don't even need to call into question my competence with writing safe code :) ; Rust's borrow checker currently precludes a swath of perfectly safe programs. This isn't a knock on Rust; it just means it's not yet intuitive.