Am 21.09.2016 um 22:49 schrieb Allin Cottrell:
On Wed, 21 Sep 2016, Sven Schreiber wrote:
IMO, the simplicity is possible in hansl, for anyone allergic to
printf;
it just takes two lines:
You're right, the level of simplicity is comparable. I guess I
implicitly also meant "short" when I said simple. I am *not* allergic to
printf (using it all the time), but I guess I'm allergic to
two-lines-vs.-one, both in input and output. Clearly a personal taste,
apparently not shared by everyone.
That could be implemented without prejudice to other points if we
reckon
it's worthwhile. I suppose the intended context would be something like
the following (please correct me if I don't have this right):
It's an intended context, but I would also say it's useful/practical for
everyday assignment usage, as in:
string s = sprintf(r)
As I said, it's about a sensible default; having to always type the
additional five characters <"%g",> strikes me as an unnecessary
nuisance. This would also be a kind of inverse to the atof() function.
OK, no more polls for now,
Yes, no more polls, and thanks for having a constructive discussion.
Let me repeat that I was trying to take the perspective of somebody who
is not currently using gretl. While we all are enthusiastic about gretl,
I think we need to remember that there's lots of competition out there,
especially for hansl the language (perhaps less for gretl, the GUI
program). So I have been trying to point out what I perceived as
disadvantages of hansl relative to other languages.
thanks,
sven