4 ms·
The point is that it’ll end up that way, so just embrace it from the start.
by wredue 3y ago
The point is that it’ll end up that way, so just embrace it from the start.
- baq 3y agothe lisp way. the problem is it results in software which is difficult to reason about due to all the compile-time execution, even if you have state-of-the-art compile-time debuggers (if any language has them, it is lisp).
- wredue 3y agoI haven’t so far found any zig code terribly hard to reason about, and it’s important to know that compile time type crafting (currently) doesn’t support decls. Although you can madness your way around that, theres idiomatic ways to manage this. Comptime is definitely very powerful, and even the top people using zig frown upon “magic”. But to be completely honest, “magic” shit just happens all the time if you enable it. Rust macro abuse to get “magic” comes to mind. If it happens in rust, it’ll certainly happen in zig.