How about appender.put() with var args?

via Digitalmars-d digitalmars-d at puremagic.com
Wed Apr 15 12:09:41 PDT 2015


Hi!

I use Appender a lot, and find it ugly to write this all the time 
to efficiently construct strings:

app.put("foo");
app.put(var);
app.put("bar");

How about this instead?

app.put("foo", var, "bar");

This would be consistent with the writeln interface, and it could 
also reduce the syntax overhead of using appenders vs string 
concats.

Was this overlooked or is there some issue I am not seeing? :)

Cheers,
-M


More information about the Digitalmars-d mailing list