Path: csiph.com!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Janis Papanagnou Newsgroups: comp.lang.misc Subject: Re: Algol 68 - formatting with fixed point format Date: Mon, 25 Aug 2025 02:14:28 +0200 Organization: A noiseless patient Spider Lines: 48 Message-ID: <108g9t5$34hb6$1@dont-email.me> References: <108bh8a$1vgqm$1@dont-email.me> <108ciqh$227hj$1@dont-email.me> <108ctni$2a3d1$1@dont-email.me> <108dip5$227hj$3@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Date: Mon, 25 Aug 2025 00:14:30 +0000 (UTC) Injection-Info: dont-email.me; posting-host="de65721df23d571887801c6d229b7800"; logging-data="3294566"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/BFgIy5SYrTZizX+eL7zhL" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 Cancel-Lock: sha1:TG02C9RU3r8bc/H/McOSeAjXaAA= In-Reply-To: <108dip5$227hj$3@dont-email.me> X-Enigmail-Draft-Status: N1110 Xref: csiph.com comp.lang.misc:11168 On 24.08.2025 01:27, Andy Walker wrote: > On 23/08/2025 18:28, Janis Papanagnou wrote: >> [...] > > Agreed completely. But the way transput is done in the > Revised Report is a botch. (I've never read this standards paper on transput.) > "FORMAT" adds around 50% to the A68 > syntax charts [eg from one page (the Watt-Peck-Sintzoff chart) to > a page and a half]. We could get 95% of the power with no new > syntax at all by moving to a model more like C. Well, C's model is very primitive compared to Algol 68's. There's really interesting things you can do with that FORMAT "sub-language". > [...] > >> [...] > > I've tended to go the other way of declaring some new > operators in my code to get better formatting. Well, back to Algol-like (less cryptic than "C") languages I'm now used to even more procedure-oriented structuring, so that I'm writing hierarchies of print_xyz procedures that organizes the higher level structures of the data. The lower-level structuring, though, shall be part of the print framework/library or the language. And having here a "gap" (as I perceived it) just hurts [me]. > FORMATs don't > mix well with ordinary string-handling code IMHO. I know how > to use FORMATs, I just don't like them. I've never considered FORMAT as (or compared it to) string handling; these always were two completely different things. I learned to appreciate it when I got aware that it's an own special purpose language embedded as first class item in that language. C's printf format is also an interpreted language, but much more primitive than Algol 68's. C's is also cryptic but simpler and thus more easily manageable. Janis