Re: Real Time IO routines -- answering Simon Wright part 1



On Mon, 29 Oct 2007 22:24:20 +0100, Georg Bauhaus wrote:

So using 'Image or not seems a use case issue to me.
Seen from this point of view, the language, or some
notion of purity, cannot decide what the use case is.

Right, this is why an equivalent of 'Image is often preferable to Text_IO.
Because it does not add so much unnecessary stuff and its does not limit
you to where and how the image will be placed. Usually for text rendering
you would better have normal string images of values which are then
aligned, wrapped, colored, shaped etc in some way. It is a bad idea to try
to pack all this in one call like Put. The fact that the built-in 'Image is
not very usable, for many reasons already mentioned by others, changes here
little. I just use my own equivalents instead. For example, I prefer UTF-8
subscript for the number base (rather than ugly 16#...#) and superscript
for its exponent part, when I do GTK+ GUI.

So "use case" is indeed an important point. The original poster said
nothing about the use case, so I used Image just in order to illustrate my
point. Which was that Unchecked_Conversion of Time to Duration is an ugly
non-portable hack, which is absolutely unnecessary, because Ada.Real_Time
already provides Spilt for the purpose of getting seconds since the epoch.

--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
.



Relevant Pages

  • Re: Cannot install MUI language pack
    ... English shortcuts in Start Menu is a known issue for most of MUI language packs. ... Last you can try to switch to use local folder paths for Repositories instead of the network shares. ... Then I tried to install French language pack and I got the same ...
    (microsoft.public.windowsxp.embedded)
  • Re: String filtering
    ... >>> language like Ada. ... You should specify what you wish to abstract away as unimportant ... If the language allows to do this in a consistent way, ... Purity requirement makes sense as an ...
    (comp.lang.ada)
  • Re: type names
    ... built-in types as is. ... An ambiguity arises within the language, and you have to solve it by ... overload for built-in ... jacob at jacob point remcomp point fr ...
    (comp.std.c)
  • Re: Problem bei Englischem Office Home und Deutschen Outlook gemis
    ... Sprachversion einzusetzen und bei Bedarf ein Language Pack zu ... Single oder das Microsoft Office Multi-Language Pack 2007 ...
    (microsoft.public.de.german.office)
  • Re: Why return None?
    ... > Fine practicality beats purity, ... > put that much weight on consistency, because practicality breaks ... You're repeating the indexing operation, ... I wonder how your language will look. ...
    (comp.lang.python)