@property - take it behind the woodshed and shoot it? - writefln
Nick Treleaven
ntrel-public at yahoo.co.uk
Thu Jan 24 07:53:59 PST 2013
On 24/01/2013 11:48, Manfred Nowak wrote:
> And on falling flat on that please rethink uglinesses like
> `writefln'. Such mangling of values of parameters into the
> identifiers of procedures might kill maintainability. Or: is
> everyone able to "see" the values hidden in several of such
> appendices coming from several libraries written by several
> coders?
>
> writefln, seefln, grabfln, killfln!
>
> `write( format="%s", someExpression, eol);' is in fact longer than
> `writefln( "%s", someExpression);'
How about:
write!"%s\n" = someExpression;
:-p
Seriously, it would be nice to have a compile-time checked format string
for writefln.
More information about the Digitalmars-d
mailing list