Feedback Wanted on Homegrown @nogc WriteLn Alternative

bearophile via Digitalmars-d digitalmars-d at puremagic.com
Thu Oct 2 17:04:23 PDT 2014


H. S. Teoh:

> So this new syntax can be implemented alongside the existing 
> syntax and people can gradually migrate over from
> purely-runtime format strings to compile-time, 
> statically-checked format strings.

Very good.

D has a static type system, unlike Python/Ruby/etc but D printing 
functions use dynamic typing for format strings. This is just 
wrong.

There is a template bloat problem, it's not a big problem, but 
I'd like some way to use template arguments that are only used to 
run compile-time functions to test them, and then leave zero 
template bloat behind :-) This was one of the purposes of a "enum 
precondition".

Bye,
bearophile


More information about the Digitalmars-d mailing list