Am 26.09.2013 02:31, schrieb Allin Cottrell:
Proposal: Make both print and sprintf into functions, deprecate the
commands of the same name, and eventually (by 2.0) remove the
commands.
[where really printf was meant, not print]
Hey this feels like Python 2 -> Python 3...
Seriously, changing printf would break a lot of existing code, so there
should be a very good reason I guess; and/or offer something like 2to3
in the Python world, that is some tool that tries to automatically
change hansl scripts to gretl2.0 syntax.
What about sprintf? In this case I think we could usefully change
the structure a little. I would favour
string s = sprintf(format, args)
Just yesterday I actually was asking myself why the sister function
sscanf() is not returning the (numerical) output instead of stuffing it
in an argument. I would like that more (and it would in general save a
line of code, the initialization of the receiving variable, right?).
thanks,
sven