improve this
>>60839617
okayvoid writeln(T...)(T args);
>>60839617echo format;
Now what?
>>60839617
>2017
>literally no type safety
no %n flag
def printf <<fmt
>>60839788
that's a use not a definition
>>60839617using namespace std;
cout << content << endl;
>>60839617int printf(const char *fmt, ...);
Better.
>>60839617
Console.WriteLine
>can use a variable multiple times
>can use variables in a different order
>don't have to remember format specifiers(unless you want to override the default one)
>works with classes
>>60841911
>>works with classes
printf can do this, just not the standard one.
Pic related is my kernel's printf, just inherit from IPrintable and implement the print method and use it like this:printk("%P\n", &your_class_instance);
>>60839617
Hey OP do you know OCaml?Printf.printf