Re:Show HN: A Fast, Malloc-Free C++14 Json Parser and Encoder
by cremno on Friday November 14, 2014 @01:30PM
(#8608655)
void fun(int mandatory_arg, int optional_arg1 = 1, int optional_arg2 = 12, int optional_arg3 = 12);
No, this isn't legal ISO C. There are ways to simulate them though: https://gustedt.wordpress.com/2010/06/03/default-arguments-f...
Re:Show HN: A Fast, Malloc-Free C++14 Json Parser and Encoder
by matt42 on Saturday November 15, 2014 @12:56AM
(#8610977)
My mistake, I just fixed the readme.
Re:Show HN: A Fast, Malloc-Free C++14 Json Parser and Encoder
by Iftheshoefits on Friday November 14, 2014 @01:24PM
(#8608615)
No, classic C doesn't have default arguments.
Is that true? Can classic C have default (optional) arguments?