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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 Path: border1.nntp.dca.giganews.com!nntp.giganews.com!goblin1!goblin.stu.neva.ru!news.swapon.de!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Text_IO, was: Re: Something I don't understand Date: Tue, 18 Feb 2014 09:40:05 +0100 Organization: cbb software GmbH Message-ID: <13cmx8lollig2.1ic40x57wows8$.dlg@40tude.net> References: <4a3e55f6-9f54-4084-9f37-96efd4b0d349@googlegroups.com> <0b358700-871b-4603-addd-65e07c7d59e5@googlegroups.com> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: I5Na6+WsEzT8WoegI0VZTA.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Xref: number.nntp.dca.giganews.com comp.lang.ada:184986 Date: 2014-02-18T09:40:05+01:00 List-Id: On Tue, 18 Feb 2014 09:14:26 +0200, Niklas Holsti wrote: > There should really be a type "Text" that represents text, with all its > complications of encoding, formatting, styles, fonts, lines, paragraphs, > tabulation, indentation, language, ... True, that is horribly complex, > but that's reality now. It is debatable if this should be in the > language, or in toolkits (GUI or others). Probably some core part of it > should be in the language and the rest in a toolkit or in an optional > Annex to the language. You cannot have that type because texts are formatted differently depending on the medium. Different mediums deploy integrated mechanisms of formatting. E.g. paging is postponed until rendering if the medium is HTML. Alignment with proportional fonts is not about fields and decimal places, etc. In 80's there were only typewriter's text medium which is why Text_IO looks as it does. Today there is no way to handle it as single monolithic chunk. The way to A) modularize it, B) keep it at the library level, is a better type system. No hacks will really help, IMO. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de