
Originally Posted by
GreatEmerald
How about this:
Code:
writeln("Today is January ", 15, ", ", 2013);
Or even:
Code:
printf("Today is January %d, %d\n", 15, 2013);

Really like the first one.
Would like to do the following:
Code:
uint intvariable = 5;
setWrite(std::cout);
writeln("sghsfmhj",12," tyjumdnjmjdsgjhpg ", 2013," pesriprtu", intvariable);
write(" pegihjesj");
writeln(123);
writeln({5}133);
Would produce the following three lines of output:
Code:
sghsfmhj12 tyjumdnjmjdsgjhpg 2013 pesriprtu5
pegihjesj123
133
(The {} is used for format specifying but is in front or behind the object to be converted to a string.)
Also being able to do toString();
With comma separated stuff like in the example.
Also being able to do a toStringNl();
Same as the previous function but with an endline behind it.
Being able to use the << operator here:
<<("sfsgfsf ", 45," sdrghjdsgol");
(also use of {} with multiple parameters, Example: {6,"^"} Would reserve six places and have as second parameter a filler for the empty space, also multiple {} on one, cascading to form more interesting outputs)
Short, easy readable, see what you get out of it, concise, very functional and high-level.