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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,174ec7dc941a1068 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!l70g2000hse.googlegroups.com!not-for-mail From: Maciej Sobczak Newsgroups: comp.lang.ada Subject: Re: Factory Pattern Date: Thu, 26 Jul 2007 06:02:38 -0700 Organization: http://groups.google.com Message-ID: <1185454958.105983.143570@l70g2000hse.googlegroups.com> References: <1185387571.367570.163160@r34g2000hsd.googlegroups.com> <1185432247.046242.24300@o61g2000hsh.googlegroups.com> <1185439242.28126.36.camel@kartoffel> <1185447702.28126.57.camel@kartoffel> NNTP-Posting-Host: 137.138.37.241 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: posting.google.com 1185454960 29308 127.0.0.1 (26 Jul 2007 13:02:40 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 26 Jul 2007 13:02:40 +0000 (UTC) In-Reply-To: <1185447702.28126.57.camel@kartoffel> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.12) Gecko/20070601 Red Hat/1.5.0.12-0.1.slc3 Firefox/1.5.0.12,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: l70g2000hse.googlegroups.com; posting-host=137.138.37.241; posting-account=ps2QrAMAAAA6_jCuRt2JEIpn5Otqf_w0 Xref: g2news2.google.com comp.lang.ada:1205 Date: 2007-07-26T06:02:38-07:00 List-Id: On 26 Lip, 13:01, Georg Bauhaus wrote: > > > Why is being case-insensitive and allowing full Unicode > > > in identifiers schizophrenic? > > > Because the concept of "case" does not apply to all scripts. Bingo, but not only. Some scripts do have the concept of "case", but the mapping between upper-case and lower-case is not 1:1. Or even better, the *length* of sequence changes with case. This introduces some funny effects when trying to decide whether two sequences have the same meaning. In the case-insensitive programming language I would expect that changing the "case" of one character in the identifier will not change its semantics. How Ada guarantees this for Unicode? Or maybe is Ada case-insensitive only in the ASCII subset of Unicode? Sorry, I don't call it "well-designed". > How does the concept of "case" apply to '-' or '8' in 7bit ASCII? > The schizophrenia is elsewhere, I'd say :-) Yes. It's in the motivation. We can make something case-insensitive in order to *reduce* the number of characters that are effectively different; and we can provide support for Unicode in order to *increase* the number of different characters. In my very humble opinion both are bad ideas (even separately). -- Maciej Sobczak http://www.msobczak.com/