News for hackers. Stuff that matters.

zigger69

Re:Lies we tell ourselves to keep using Golang on Sunday May 01, 2022 @06:28AM (#31223768)
> Also: operator overloading is the spawn of Satan.

It is. And I'm glad Zig has none of that. `==` only works for primitives and you will never be confused.

Re:Lies we tell ourselves to keep using Golang on Sunday May 01, 2022 @06:17AM (#31223714)
> I do think on a long enough timescale, programmers will eventually move to a "better" language. But in my opinion, that time scale exceeds the lifespan of a human :)

Zig exists and is here today.

Re:Discussions: Real human answers in search results on Thursday April 21, 2022 @06:03AM (#31107604)
Wow, that's amazing! I agree so much. When I want to know which of two products is better, I just want to see a casual reddit discussion with real people stating their opinions and knowledge. Discussions seems like a great feature! Brave Search is becoming more and more interesting.
You can execute arbitrary code on drop operations by implementing `std::ops::Drop` for a type.
It's really easy in Zig to be honest. Just put `defer thing.deinit()` in the right scope and you're done. You gain explicitness and know exactly what's going on in your Code. Everything is obvious. That's the reason Zig is so incredible simple and easy to read. Zig also has a GPA that will tell you about memory leaks or anything.
Crystal: compilation speed is just too slow, sadly. Nim and Zig: I'd definitely just go with Zig. It's an extremely simple language, has no macros (but something much better than macros), is explicit, and in the long run it's just going to be worth it much more than Nim.