3 ms·
If we're playing CLI golf why not use macros to make it even dryer? int fired_main(int x = fire::arg("-x"), int y = fire::arg("-y")) could just be in
by femto113 6y ago
If we're playing CLI golf why not use macros to make it even dryer?
int fired_main(int x = fire::arg("-x"), int y = fire::arg("-y"))
could just be
int fired_main(int fire_arg(x), int fire_arg(y))
with something like
#define fire_arg(v) v = fire::arg("-"#v)
The C preprocessor is still the thing I miss most when working in any other language.