from Hacker News

Metaprogramming in Zig and parsing CSS

by hundredwatt on 6/19/23, 7:09 PM with 12 comments

  • by bsaul on 6/19/23, 9:28 PM

    from all the zig features i've seen, comptime seems like the most likely to have the most impact on future PL design. I don't know how powerful it is in practice, but the idea looks so elegant and simple and they seem to have managed to make it work.
  • by WalterBright on 6/19/23, 9:06 PM

    Here's a parser generator that uses metaprogramming in D to run it at compile time:

    https://github.com/PhilippeSigaud/Pegged

  • by lenkite on 6/20/23, 5:51 AM

    Zig is an amazing language. Just wish they weren't anti-RAII.
  • by lionkor on 6/19/23, 9:34 PM

    The only thing stopping me from using Zig is the lack of docs