From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-65-14.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-2.9 required=3.0 tests=BAYES_00,NICE_REPLY_A autolearn=ham autolearn_force=no version=3.4.6 Path: eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: "J-P. Rosen" Newsgroups: comp.lang.ada Subject: Re: Ada and Unicode Date: Wed, 6 Apr 2022 21:57:01 +0300 Organization: Adalog Message-ID: References: <607b5b20$0$27442$426a74cc@news.free.fr> <86mttuk5f0.fsf@stephe-leake.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Wed, 6 Apr 2022 18:56:59 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="0cdfdab607f832ca41c4c727bdce1faf"; logging-data="28742"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18LR6Nsi1pP3vv8FWsfjcLf" User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Cancel-Lock: sha1:x3IRK7zir+UWDHOI72bsaBrxphE= In-Reply-To: Content-Language: fr Xref: reader02.eternal-september.org comp.lang.ada:63708 List-Id: Le 03/04/2022 à 21:04, Thomas a écrit : >> They are not so different. For example, you may read the first line of a >> file in a string, then discover that it starts with a BOM, and thus >> decide it is UTF-8. > > could you give me an example of sth that you can do yet, and you could > not do if UTF_8_String was private, please? > (to discover that it starts with a BOM, you must look at it.) Just what I said above, since a BOM is not a valid UTF-8 (otherwise, it could not be recognized). >> >> BTW, the very first version of this AI had different types, but the ARG >> felt that it would just complicate the interface for the sake of abusive >> "purity". > > could you explain "abusive purity" please? > It was felt that in practice, being too strict in separating the types would make things more difficult, without any practical gain. This has been discussed - you may not agree with the outcome, but it was not made out of pure lazyness -- J-P. Rosen Adalog 2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX Tel: +33 1 45 29 21 52 https://www.adalog.fr