Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Zig comptime: does anything come close? (athaydes.com)
3 points by bw86 on Jan 16, 2025 | hide | past | favorite | 2 comments


Using the comptime keyword runs arbitrary code and functions at compilation-time.

Is this somewhat comparable to C++ macros?


Ruby metaprogramming, perhaps.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: