3 ms·
That's my complaint about Zig as well coming from C. I feel that there are too many reserved words in Zig, and some of them are too long (comptime for instance
by hhhhmycmd22 4y ago
That's my complaint about Zig as well coming from C.
I feel that there are too many reserved words in Zig, and some of them are too long (comptime for instance).
Maybe that's just me being too picky about surface level concerns, but that kind of stuff really bothers me for some reason.
Other than that, I do like some parts of Zig. The way templates are designed seems superior to C macros and C++ templates, having your build scripts be in the language you are building is something more languages should do, the compiler is impressive in some ways... I suppose in theory all of that should make up for the poorly chosen keywords and whatnot.
I disagree with other commenters that think Zig is simple. At least compared to C, which I think is fair given Zigs target audience. C feels simpler despite all the undefined behavior and extensions to the standard and portability issues. Somehow I think it's down to the reserved words that were chosen.
- kaba0 4y ago> The way templates are designed seems superior to C macros Everything is superior to C macros, that’s like the worst thing ever created. Honestly, C is not a good language but if it would have had at least a proper macro system it could at least be remotely usable, e.g. having proper generic data structures.