On 08/01/2022 17:15, James Harris wrote:
OK. I would say that that has /default/ formatting but is stillIf you are not convinced by formatted io then what kind of io doUnformatted transput, of course. Eg,
you prefer?
print this, that, these, those and the many other things
formatted.
You can say that if you insist, but ISTM to be an abuse of language. The point about /formatted/ transput is that the user
prescribes some "mould" into which objects such as integers [for
output] or strings [for input] are "poured" for conversion. So
we get calls like "printf (some_mould, some_value)". It's a
useful distinction from unformatted transput, where the user does
not specify any mould.
On 09/01/2022 22:05, I wrote:
[...] The point about /formatted/ transput is that the userYou seem to be thinking about printing a number using some character
prescribes some "mould" into which objects such as integers [for
output] or strings [for input] are "poured" for conversion. So
we get calls like "printf (some_mould, some_value)". It's a
useful distinction from unformatted transput, where the user does
not specify any mould.
set - perhaps even some particular base, such as decimal. All of
those are, surely, kinds of formatting. If the default formatting is
decimal, with no leading zeroes and left justified then that's still
a way to format a number.
Sometimes
you just want to see the numbers [or whatever]; other times, it matters
to you how they are formatted. In the one case, you don't want to have
to spend time thinking about what format to use [esp while debugging];
in the other, the layout of the output is important.
Sysop: | DaiTengu |
---|---|
Location: | Appleton, WI |
Users: | 917 |
Nodes: | 10 (2 / 8) |
Uptime: | 07:24:37 |
Calls: | 12,176 |
Calls today: | 6 |
Files: | 186,522 |
Messages: | 2,234,963 |