4 ms·
> Zig is so revolutionary in its design that it's hard to compare it to anything else. I mean, Zig has an interesting combination of functionality, but I would
by 1980phipsi 3y ago
> Zig is so revolutionary in its design that it's hard to compare it to anything else.
I mean, Zig has an interesting combination of functionality, but I wouldn't say that the individual pieces are revolutionary. Who knows though, the whole could be more revolutionary than the sum of it's parts...
- ngrilly 3y agoZig's take on comptime is quite new (which is the main point of the article being discussed). Error handling and async/await as well.
- 1980phipsi 3y agoZig's take on comptime is slightly different from C++ and D, but that doesn't make it revolutionary. It has first class types, which allows you to pass them to a function along with normal function parameters, instead of having a separate syntax for it like C++ and D. But it's not really new.
- pron 3y agoThat's a little like saying that smartphones weren't really new because we had mobile phones and calculators and cameras and video cameras and handheld games before. Zig's comptime is revolutionary and really new in that it replaces many other separate features and is the basis of Zig's minimalism. Figuring out how to discard features is much more difficult than adding them, and simplicity is something that's impossible to add once it's lost. The message is not the existence of a rather general compile time execution, but that with a particular design of such a mechanism you can do away with other things.
- deleted 3y ago[deleted]
- pron 3y agoTo say something truly original you don't have to invent new words.
- LAC-Tech 3y agoIt's the only mainstream language I know where structs and modules are the same thing.