From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!goblin1!goblin.stu.neva.ru!ottix-news.ottix.net!newsswitch.lcs.mit.edu!nntp.TheWorld.com!.POSTED!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Text_IO, was: Re: Something I don't understand Date: Wed, 19 Feb 2014 17:30:05 -0500 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <4a3e55f6-9f54-4084-9f37-96efd4b0d349@googlegroups.com> <0b358700-871b-4603-addd-65e07c7d59e5@googlegroups.com> <13cmx8lollig2.1ic40x57wows8$.dlg@40tude.net> <1mh0lp04e4bzc.vr6hi3fcbba5.dlg@40tude.net> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls7.std.com 1392849009 870 192.74.137.71 (19 Feb 2014 22:30:09 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Wed, 19 Feb 2014 22:30:09 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:rMrHyxkAxgUL6/xUBT989CDibtc= Xref: news.eternal-september.org comp.lang.ada:18685 Date: 2014-02-19T17:30:05-05:00 List-Id: Niklas Holsti writes: > On 14-02-19 17:06 , Robert A Duff wrote: >> Niklas Holsti writes: >> >>> My notion of type "Text" is an internal representation of text meant for >>> human reading and viewing. I don't see any logical need for making this >>> type a class; there would be only one predefined (and private) type. >> >> How is your notion of Text different from (say) HTML? > > Because "Text" is an internal form with a hidden implementation. > >> Or an internal tree-ish representation of HTML? > > More or less. Think "abstract syntax tree" instead of "concrete language > sentence". Or "Document Object Model". So what you're asking for is an Ada binding to HTML (or to Postscript, or something). >> Anyway, I'd say your notion of Text has nothing to do with Text_IO, >> which is about plain unformatted text. Originally 7-bit ASCII. > > Yes, Text_IO is about plain unformatted text, except for "typewriter > formatting" with column, line, and page controls. Right, what I meant is that if your notion of Text were added to Ada, it should not replace Text_IO. There's still a need for simple I/O of simple sequences of characters. What Text_IO SHOULD be about is plain text. I'd get rid of the page-related stuff, and I'd get rid of the line and column counters -- we don't need that level of "formatting". Of course, I'm just criticizing the design. I'm not suggesting that it should be changed now. It should have been changed in 1979. Compatibility rules! > The discussion was about how to improve the text (output) facilities of > Ada. The abstract "Text" structure is one suggestion. But it should > perhaps be called something else, to avoid confusing Ada.Text_IO with > Ada.Text.IO :-) Anyway, I'm not suggesting "Text" input, only "Text" output. Understood. - Bob