CTFE thoughts & functional approach
Era Scarecrow via Digitalmars-d
digitalmars-d at puremagic.com
Sun Jan 31 16:02:55 PST 2016
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.
More information about the Digitalmars-d
mailing list