logoalt Hacker News

addaon • today at 2:16 AM • 0 replies • view on HN

(src/calculator/app.zig fn clicked is the kind of thing I have in mind... clearly it's an insane implementation, but as a non-zig-fluent developer it's not clear to me if this should be 2 lines, or if like in most other languages it shouldn't exist at all because the insanity is the definition of labels as an implicitly-indexed array rather than as a map. That's just the first random file I opened, but the second one had completely different insanity that looks like it might be a verbose workaround to zig's lack of RAII rather than just normal AI puffery…)