Challenge: write a template-instance free dispatcher for text printing
Basile B.
b2.temp at gmx.com
Wed May 27 22:14:13 UTC 2026
On Wednesday, 27 May 2026 at 18:13:40 UTC, H. S. Teoh wrote:
> On Thu, May 28, 2026 at 04:44:56AM +1200, Richard (Rikki)
> Andrew Cattermole via Digitalmars-d wrote:
>> [...]
> [...]
>> [...]
> [...]
>> [...]
>
> Makes me really wish for Stefan's' CTFE engine + CT type
> manipulation support.
>
> Although D templates are extremely powerful and awesome for
> metaprogramming, templates are ultimately not the right concept
> for many CT tasks. What we *really* want is CTFE + type
> manipulation for DbI to compute the final form of a template
> instantiation, then a single template instantiation at the end
> to actualize it. The current idiom of arbitrarily-complex
> templates nested arbitrarily deep, while powerful, leads to
> needless template bloat.
>
>
> T
We just want to insert new AST nodes during compilation, we are
just not sure how to insert them... macros ? mixins ? templates ?
🤔
More information about the Digitalmars-d
mailing list