1. writefn sprintf format - Too Many Options?
- Posted by euphoric (admin) Oct 07, 2009
- 2890 views
- Last edited Oct 08, 2009
Derek, I couldn't find the thread where you explained the differences between printf() and writefn() (or whatever those functions were).
But now I see std/text.e:format() is also available!
Might we need to do a little consolidation, or are all these functions not as redundant as they might seem? Can you explain (again?sorry)?
2. Re: writefn sprintf format - Too Many Options?
- Posted by DerekParnell (admin) Oct 08, 2009
- 2864 views
Derek, I couldn't find the thread where you explained the differences between printf() and writefn() (or whatever those functions were).
But now I see std/text.e:format() is also available!
Might we need to do a little consolidation, or are all these functions not as redundant as they might seem? Can you explain (again?sorry)?
The format() function implements the extended (new) formatting options. This returns a string of text. The writef() and writefln() functions simply call that formatter and sends the string to the console (by default) or any other file you specify. You might need to format stuff but not send to the file as a line of text, that's why format() exists as a separate function.
3. Re: writefn sprintf format - Too Many Options?
- Posted by ChrisB (moderator) Oct 08, 2009
- 2825 views
Hi
Just so that thousands of applications are not made immediately obsolete, could you just reassure the (non-dev) members, that printf() and sprintf() will not slip into obscurity any time in the near future. Or ever.
Havingamildpanicattack
Chris
4. Re: writefn sprintf format - Too Many Options?
- Posted by DerekParnell (admin) Oct 08, 2009
- 2810 views
Hi
Just so that thousands of applications are not made immediately obsolete, could you just reassure the (non-dev) members, that printf() and sprintf() will not slip into obscurity any time in the near future. Or ever.
Havingamildpanicattack
Chris
So when I said in message:109887, "printf is not going to go away as far as I can see", what did you think I meant?
5. Re: writefn sprintf format - Too Many Options?
- Posted by euphoric (admin) Oct 08, 2009
- 2808 views
Just so that thousands of applications are not made immediately obsolete, could you just reassure the (non-dev) members, that printf() and sprintf() will not slip into obscurity any time in the near future. Or ever.
Havingamildpanicattack
LOLZ! No, they're not going anywhere.
6. Re: writefn sprintf format - Too Many Options?
- Posted by ChrisB (moderator) Oct 08, 2009
- 2839 views
Hi
Just so that thousands of applications are not made immediately obsolete, could you just reassure the (non-dev) members, that printf() and sprintf() will not slip into obscurity any time in the near future. Or ever.
Havingamildpanicattack
Chris
So when I said in message:109887, "printf is not going to go away as far as I can see", what did you think I meant?
Well, when Gordon Brown says the economy is picking up, what do you think he means? Was the pH a bit low there?
Chris
7. Re: writefn sprintf format - Too Many Options?
- Posted by jimcbrown (admin) Oct 08, 2009
- 2806 views
Hi
Just so that thousands of applications are not made immediately obsolete, could you just reassure the (non-dev) members, that printf() and sprintf() will not slip into obscurity any time in the near future. Or ever.
Havingamildpanicattack
Chris
So when I said in message:109887, "printf is not going to go away as far as I can see", what did you think I meant?
Well, when Gordon Brown says the economy is picking up, what do you think he means? Was the pH a bit low there?
Chris
For what it's worth, I give my ironclad guarantee that printf and sprintf won't go away anytime in the near future. The printf() syntax is too ubiquitous (in C and also in shell scripts) to fade away anytime soon, which keeps it as a useful addition to Eu in general.
(I'm speaking only for myself here.)
8. Re: writefn sprintf format - Too Many Options?
- Posted by DerekParnell (admin) Oct 08, 2009
- 2759 views
Hi
Just so that thousands of applications are not made immediately obsolete, could you just reassure the (non-dev) members, that printf() and sprintf() will not slip into obscurity any time in the near future. Or ever.
Havingamildpanicattack
Chris
So when I said in message:109887, "printf is not going to go away as far as I can see", what did you think I meant?
Well, when Gordon Brown says the economy is picking up, what do you think he means? Was the pH a bit low there?
He means that "the economy is picking up", and I don't see what acidity level has to do with anything?
I cannot give a firm guarantee on things that I do not control, so therefore I cannot say that printf will never disappear, but only that I believe that it will not be doing so.