Hacker News new | ask | show | jobs
by pjmlp 4281 days ago
D has meta-programming and compile-time evaluation, including reading files.

I bet C++ can do it with some clear use of template metatprogramming, compile time evaluation and processor macros.

Nim has meta-programming capabilities, including reading files.

Not sure about Template Haskell, though.

1 comments

Template Haskell code can runIO I/O actions, including reading files.