comp.lang.ada
 help / color / mirror / Atom feed
From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: Ada generics
Date: Fri, 5 Jan 2007 18:14:54 -0600
Date: 2007-01-05T18:14:54-06:00	[thread overview]
Message-ID: <R76dnZdewYRUdAPYnZ2dnUVZ_h6jnZ2d@megapath.net> (raw)
In-Reply-To: 1168028046.28234.27.camel@localhost

"Georg Bauhaus" <bauhaus@arcor.de> wrote in message
news:1168028046.28234.27.camel@localhost...
> On Thu, 2007-01-04 at 19:32 -0600, Randy Brukardt wrote:
>
> > If that is a real concern, just insist that all of your programs are
edited
> > with a 1984-vintage MS-DOS editor (like I do ;-), and you won't possibly
be
> > able to have a problem. Indeed, I expect most programmers will continue
to
> > do this (use tools that don't support Unicode), so any new problems will
be
> > limited.
>
> Maybe there is a chance that UTF-8 will show its advantages in
> a trouble free transition from Latin-1 to UTF-8 where possible
> (string literals made for 8bit character set displays might need
> attention, I guess).

You missed the point, I think. I was responding to Dmitry's concern about
distinct identifiers that look alike. One way to avoid this is to use tools
that *only* support Latin-1. Then it's pretty hard to have that problem,
especially if you use a decent font.

There's nothing wrong with UTF-8, and that's certainly the preferred way to
get Unicode characters. But if you use UTF-8, then you have to face the
potential problem of confusing identifiers. As Dmitry says, the glyphs of
many distinct characters can be the same and usually are (for example,
between Latin and Cyrillic). Checking for that can only be done with tools
outside of the language (although they could be built into the compiler, as
Gnat does for some style checks). If you're not willing or able to use such
tools, then stick with Latin-1 only programs.

Recoding to UTF-8 actually introduces a potential problem where none existed
before. So it's not something that should be done unless you really need
Unicode characters...

                                Randy.






  reply	other threads:[~2007-01-06  0:14 UTC|newest]

Thread overview: 62+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-21 14:14 Ada generics markww
2006-12-21 15:42 ` Dmitry A. Kazakov
2006-12-22  7:59   ` Martin Krischik
2006-12-22 16:14     ` Hyman Rosen
2006-12-22  7:59   ` Martin Krischik
2006-12-22 16:41   ` Hyman Rosen
2006-12-22 17:33     ` Markus E Leypold
2006-12-22 18:26       ` Hyman Rosen
2006-12-22 20:59         ` Markus E Leypold
2006-12-22 21:01           ` Markus E Leypold
2006-12-23 14:09           ` Marco
2006-12-25 14:23             ` Hyman Rosen
2006-12-29 14:13               ` Marco
2006-12-25 14:20           ` Hyman Rosen
2006-12-23 11:43     ` Dmitry A. Kazakov
2006-12-25 13:49       ` Hyman Rosen
2006-12-25 14:39         ` Dmitry A. Kazakov
2006-12-26  1:34           ` Hyman Rosen
2006-12-26  9:11             ` Dmitry A. Kazakov
2006-12-26 16:23               ` Hyman Rosen
2006-12-26 19:28                 ` Dmitry A. Kazakov
2006-12-27  1:44                   ` Hyman Rosen
2006-12-27  9:21                     ` Dmitry A. Kazakov
2006-12-27 19:06                       ` Hyman Rosen
2006-12-28 10:59                         ` Dmitry A. Kazakov
2006-12-28 16:29                           ` Hyman Rosen
2006-12-29 11:12                             ` Dmitry A. Kazakov
2006-12-29 14:56                               ` Hyman Rosen
2006-12-28 17:35                           ` Georg Bauhaus
2006-12-29 14:48                             ` Dmitry A. Kazakov
2006-12-29 19:39                               ` Georg Bauhaus
2006-12-30  9:58                                 ` Dmitry A. Kazakov
2006-12-30 14:53                                   ` Georg Bauhaus
2007-01-01 13:00                                     ` Dmitry A. Kazakov
2007-01-02 10:04                                       ` Georg Bauhaus
2007-01-02 11:11                                         ` Dmitry A. Kazakov
2007-01-02 12:33                                           ` Georg Bauhaus
2007-01-02 13:51                                             ` Dmitry A. Kazakov
2007-01-02 14:45                                               ` Georg Bauhaus
2007-01-03 10:10                                                 ` Dmitry A. Kazakov
2007-01-03 14:20                                                   ` Hyman Rosen
2007-01-03 14:55                                                   ` Georg Bauhaus
2007-01-04 10:15                                                     ` Dmitry A. Kazakov
2007-01-03 19:33                                           ` Alexander E. Kopilovich
2007-01-04 10:27                                             ` Dmitry A. Kazakov
2007-01-04 15:00                                               ` Alexander E. Kopilovich
2007-01-05 10:32                                                 ` Dmitry A. Kazakov
2006-12-30  2:25                               ` Randy Brukardt
2006-12-30 10:13                                 ` Dmitry A. Kazakov
2007-01-04  1:09                                   ` Randy Brukardt
2007-01-04 10:07                                     ` Dmitry A. Kazakov
2007-01-05  1:32                                       ` Randy Brukardt
2007-01-05  4:46                                         ` Randy Brukardt
2007-01-05  9:08                                         ` Jean-Pierre Rosen
2007-01-05 20:14                                         ` Georg Bauhaus
2007-01-06  0:14                                           ` Randy Brukardt [this message]
2006-12-29  0:09                           ` Randy Brukardt
2006-12-29 11:11                             ` Dmitry A. Kazakov
2006-12-30  2:40                               ` Randy Brukardt
2006-12-21 16:55 ` Hyman Rosen
2006-12-21 18:22   ` markww
2006-12-22  3:01 ` Steve
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox