Better HN
topnewbestaskshowjobs
Log inSign up

zigger69

7 karma · joined Apr 16, 2022 (4y ago) · 6 submissions

Submissions

comment 4y ago · link · parent

> 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.

comment 4y ago · link · parent

> 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.

comment 4y ago · link · parent

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.

comment 4y ago · link · parent

You can execute arbitrary code on drop operations by implementing `std::ops::Drop` for a type.

comment 4y ago · link · parent

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.

comment 4y ago · link · parent

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.