News for hackers. Stuff that matters.
Re:Why Zig when there is already C++, D, and Rust? by fctorial on Friday January 15, 2021 @08:16PM (#25798921)
Rust is a lot easier than C++, although there is an initial slightly steeper learning curve.
Re:Why Zig when there is already C++, D, and Rust? by djeiasbsbo on Saturday January 16, 2021 @04:03AM (#25801085)
It's hard, coming from C because C is a small language with not many keywords. As a hobby programmer I did not know about generics and such and the differences between pointers and references.

Learning Rust kind of feels like brute-forcing my brain until it sticks. But I can't say it isn't fun and exciting!

Re:Why Zig when there is already C++, D, and Rust? by stjohnswarts on Saturday January 16, 2021 @03:23PM (#25805166)
Rust has a steeper learning curve initially but when you're over the hump you don't see mountains in the distance like you do in C++ :)
Re:Why Zig when there is already C++, D, and Rust? by iFreilicht on Saturday January 16, 2021 @05:54PM (#25806298)
And I feel like, while Rust also has you puzzle-solve a little and jump through hoops initially, you quickly start to appreciate all the safety that gains you. And I value that a LOT. Though I have to say, Zig looks awesome. Both Rust and Zig get me really excited to code more after getting frustrated with god-awful python codebases.