1. 42
  1.  

  2. 4

    Nice post about comptime, and zig in general.

    Also first time i had run across goldbolt. Super neat!

    1. 4

      Nice writeup on this. If I understand comptime correctly, that means that zig interprets zig while compiling zig, correct?

      1. 4

        Yes! It’s a lot like a preprocessor or macro, but instead of another language on top of your source language, Zig’s compile-time language is Zig.

      2. 2

        Nice, looks very D-esque. Metaprogramming done right.

        (btw: my favorite D superpower is introspecting the current class)

        1. 1

          Currently I’m writing some C++ at work. I so wish I could iterate over the members of a class like in D.