Comment

Comment by WalterBright

It's not novel. D pioneered compile time function execution (CTFE) back around 2007. The idea has since been adopted in many other languages, like C++.

One thing it is used for is generating string literals, which then can be fed to the compiler. This takes the place of macros.

CTFE is one of D's most popular and loved features.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton