News for hackers. Stuff that matters.
Re:Constexpr-8cc: Compile-time C Compiler by Retra on Friday November 18, 2016 @06:17PM (#12990860)
I pretty much only program in C++ at work and Rust at home now, and I think Rust is hands-down a better designed language. It just feels more coherent and consistent.

I used to despise C++, but ever since I've had to abandon all usage of it's std library, I don't mind it anymore. It's a bit less crufty that way. Though I'm still peeved every time the compiler dumps 30 pages of every virtual method in existence because it couldn't find one that matched my call.

Re:Constexpr-8cc: Compile-time C Compiler by dom0 on Friday November 18, 2016 @07:07PM (#12991074)
> I pretty much only program in C++ at work and Rust at home now, and I think Rust is hands-down a better designed language. It just feels more coherent and consistent.

C++ turned out kinda... good -- considering that it started out as "tacking classes on C".

Re:Constexpr-8cc: Compile-time C Compiler by Koshkin on Friday November 18, 2016 @08:18PM (#12991424)
Classes (with destructors) is the single most powerful and important addition to plain C. In C, even exceptions can be emulated, more or less naturally, but destructors cannot (without a compiler-specific extension). So, I'd argue that the best parts were the ones that came in early. The latest version of C++, of course, is nothing to sneeze at, either.
Re:Constexpr-8cc: Compile-time C Compiler by svckr on Saturday November 19, 2016 @05:01AM (#12992750)
Agreed. RAII is something I miss deeply in many other languages.
Re:Constexpr-8cc: Compile-time C Compiler by Koshkin on Friday November 18, 2016 @08:22PM (#12991441)
> abandon... std library

You are bound, then, "to reimplement it, poorly."

Re:Constexpr-8cc: Compile-time C Compiler by Retra on Friday November 18, 2016 @08:38PM (#12991500)
Nah, my coworkers did that 30 years ago. :)
Re:Constexpr-8cc: Compile-time C Compiler by santaclaus on Friday November 18, 2016 @08:43PM (#12991518)
The EA STL is competitive with the standard library!