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!.POSTED!not-for-mail From: "J-P. Rosen" Newsgroups: comp.lang.ada Subject: Re: Ada++ Date: Sun, 14 Jun 2020 07:29:33 +0200 Organization: Adalog Message-ID: References: <50711230-5b14-4278-b9d8-d197bbe3c93b@googlegroups.com> <9320040f-5486-4d1e-847d-f81b0a59fcfa@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Sun, 14 Jun 2020 05:29:33 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="b9efcd14e4889e3ca02884a66a075bba"; logging-data="10204"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/niqb8QLk58Adsukwz5oHN" User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 Cancel-Lock: sha1:w1tEFqX0YEI7abTWtt9pvfJy1D0= In-Reply-To: Content-Language: fr Xref: reader01.eternal-september.org comp.lang.ada:59074 Date: 2020-06-14T07:29:33+02:00 List-Id: Le 13/06/2020 à 11:40, Nasser M. Abbasi a écrit : > On 5/29/2020 1:06 AM, J-P. Rosen wrote: >> Le 29/05/2020 à 06:38, Nasser M. Abbasi a écrit : >>> "Ada has neither heredocs nor multiline strings. A >>> workaround is to use containers of strings:" >> > > >> Please provide a use case showing how these features are >> necessary/important. >> > I wanted sometime ago to use Ada to generate Latex file on the > fly. > [...] I think it is a bad idea to have the template file in the code. Every time you change a coma in your text, you'll need to recompile your program. A much better solution is to use AWS template parser. You keep the template separate from your program, and you can parameterize the content at will. By changing the template, you can even move from Latex to whatever-is-in-fashion-today without changing your program. -- J-P. Rosen Adalog 2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX Tel: +33 1 45 29 21 52, Fax: +33 1 45 29 25 00 http://www.adalog.fr