News for hackers. Stuff that matters.
Re:Zig in 30 Minutes by friend-monoid on Sunday January 03, 2021 @07:48AM (#25621462)
Well, on the upside on the ‘for’ syntax, it allows you to say “for (objects) draw” instead of “for (object in objects) { draw(object); }”. So it’s not all bad.

Edit: also, the print stuff, I feel that’s in line with the Zig Zen - make the language simple to understand. Now the print function has a very clear type. Otherwise you need a “smart” print function (like Rust does with a macro or C does with varargs). Easier to understand, not easier to type.

There are no comments on this comment yet.