On Monday, 1 February 2016 at 00:02:55 UTC, Era Scarecrow wrote:
On Sunday, 31 January 2016 at 13:59:06 UTC, Robert M. Münch wrote:
However, I'm wondering why most (everyone?) is trying to do meta-programming using the same language as the one getting compiled. IMO the use-cases a pretty different and doing CTFE, code-generation etc. needs some other approach. If you look at all the strange template syntax, strange hacks etc. it's all far from being obvious.

I have trouble coming up with a proper use-case to use Regex during CTFE; I mean, sure you can do a replacement expansion and encode a few bits to expand for a switch statement or something, but at the same time you can already do that.

Wrong thread?

Reply via email to