News for hackers. Stuff that matters.
Re:Problems of C, and how Zig addresses them by Cloudef on Monday July 03, 2023 @09:49PM (#36581167)
What I'm really waiting for is zig support for custom range ints https://github.com/ziglang/zig/issues/3806

Also minor nitpick I have is that the interval/range syntax in zig is pretty confusing as it can be both inclusive and exclusive depending on context. Swift does it imo better by ... being inclusive and ..< exclusive

Re:Problems of C, and how Zig addresses them by earthboundkid on Monday July 03, 2023 @11:08PM (#36581706)
I was surprised they didn’t copy Swift on this. It seems just obviously better than two dots.
Re:Problems of C, and how Zig addresses them by brabel on Tuesday July 04, 2023 @01:21AM (#36582523)
Groovy has had that syntax for much longer than Swift has existed... Groovy normally copies features from Ruby/Python/SmallTalk so I would think one of those are the source for this syntax.