3 ms·
Comptime. After having discovered Zig, I've been missing that feature in every other language.
by jedisct1 4y ago
Comptime.
After having discovered Zig, I've been missing that feature in every other language.
- amalgamated_inc 4y agoCompare to lisp macros?
- AnIdiotOnTheNet 4y agoAnd error unions with corresponding semantics. And explicit casting requirements. And @TypeInfo. And no hidden allocations. And probably like 4 or 5 other things I'm not thinking of right now.
- Deukhoofd 4y agoComptime is great, but I wouldn't classify it as a microfeature. It'd fall more in the second category the author defines.
- deleted 4y ago[deleted]
- gavinhoward 4y agoFor me, yes and no. Sure, comptime is great, but I've also found it hard to reason about code with it. I prefer my comptime stuff separated out into its own section/file/whatever. With that small change, it becomes so much easier. But yeah, still powerful and nice.
- still_grokking 4y agoZig would be great if it took security more serous. As long as you're ending up with the same problems as in C/C++ it can be as great as it likes it will stay a language of the past.