logoalt Hacker News

eskatoday at 7:46 PM1 replyview on HN

I don’t know zig syntax, but wouldn’t it be possible to put this common pattern into a macro and simplify it to mostly a lambda on V?


Replies

dnauticstoday at 7:57 PM

no macros in zig, but yes you could metaprogram it. types are first class values at compile time so you could do that sort of specialization if you wanted.