|
|
|
|
|
by addaon
3 days ago
|
|
(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…) |
|
If you're used to your RAD or layout design tool hiding that stuff from you then sure, it looks messy. And it could definitely be made more readable. And like you I've already identified some unhandled edge-cases. But is it insane? Nah.