Hacker News new | ask | show | jobs
by andyonthewings 2499 days ago
Haxe's macro is similar. It can run arbitrary code during compilation. One useful thing to do is to get the current git commit hash and inject it into the program: https://code.haxe.org/category/macros/add-git-commit-hash-in...