Is metaprogramming useful?
Paolo Invernizzi
arathorn at NOSPAM_fastwebnet.it
Tue Nov 28 03:47:49 PST 2006
We really need a partial rewrite of Phobos, at least the low/level
always used stuff, in a template-based way.
It would be good to have it in the 1.0, at least because a lot of D
newbie will LOOK INTO the standard library sources searching for great D
code.
my 2c
---
Paolo Invernizzi
Don Clugston wrote:
> Indeed I have. The tuple stuff makes this all really appealing. In
> particular, I've played around with a writef() equivalent which checks
> the parameters for 'easy' cases, and splits it off into:
> -> single string only
> -> strings, chars, and integers
> -> floating point, arrays, and objects.
>
> This way you can avoid linking in the floating-point conversion code if
> you're not using it, keeping the code size down. In fact, it ought to be
> possible to remove the usage of TypeInfo completely, moving it all into
> compile-time.
More information about the Digitalmars-d
mailing list