comp.lang.ada
 help / color / mirror / Atom feed
From: Maciej Sobczak <see.my.homepage@gmail.com>
Subject: Re: Factory Pattern
Date: Wed, 25 Jul 2007 23:44:07 -0700
Date: 2007-07-25T23:44:07-07:00	[thread overview]
Message-ID: <1185432247.046242.24300@o61g2000hsh.googlegroups.com> (raw)
In-Reply-To: <YdSpi.39934$Fc.15226@attbi_s21>

On 26 Lip, 02:51, "Jeffrey R. Carter"
<spam.jrcarter....@acm.nospam.org> wrote:

> I would think that an enumeration type would be better than Integer for
> selecting among a few choices. Using Integer probably reflects C/++
> thinking.

No. C and C++ have enumerations.

> Like all well designed languages, Ada is not case sensitive.

Careful. It is a question of interpretation of any given character set
and it can be different with different tools, and there are many. The
problem is that it is only the Ada compiler which can be case
insensitive, but text editors or tools like diff or grep are not by
default and making them such requires additioinal effort - this is a
perfect place for mistakes.

In addition, being case-insensitive and at the same time allowing full
Unicode in identifiers is kind of schisophreny.

> de facto Ada standard of
> Camelcase.

If there are such standards, then what's the benefit of being case-
insensitive? Get any Ada program that conforms to this de facto
standard and imagine that the compiler is today case-sensitive. Would
you have any problem compiling this program? No.

> Ada's features for programming by extension are somewhat different than
> C++'s, and you need to become familiar with the Ada concepts before
> trying something like this. Once you do, though, you may find you like
> Ada way better. You can have both static and dispatching calls to the
> same subprogram, for example.

You can have it in C++ as well, so this example is not the reason to
like Ada "way better".

--
Maciej Sobczak
http://www.msobczak.com/




  reply	other threads:[~2007-07-26  6:44 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-25 18:19 Factory Pattern shaunpatterson
2007-07-25 18:28 ` Martin
2007-07-25 18:51 ` Dmitry A. Kazakov
2007-07-25 21:06   ` Georg Bauhaus
2007-07-25 19:27 ` Matthew Heaney
2007-07-26  0:51 ` Jeffrey R. Carter
2007-07-26  6:44   ` Maciej Sobczak [this message]
2007-07-26  8:40     ` Georg Bauhaus
2007-07-26  9:53       ` Dmitry A. Kazakov
2007-07-26 11:01         ` Georg Bauhaus
2007-07-26 13:02           ` Maciej Sobczak
2007-07-26 13:44             ` Dmitry A. Kazakov
2007-07-26 14:58             ` Georg Bauhaus
2007-07-26 22:31             ` Randy Brukardt
2007-07-27 13:07               ` Maciej Sobczak
2007-07-27 14:23                 ` shaunpatterson
2007-07-27 22:23                 ` Randy Brukardt
2007-07-28 18:56                   ` Maciej Sobczak
2007-07-29  7:54                   ` Maciej Sobczak
2007-07-29  8:53                     ` Dmitry A. Kazakov
2007-07-29 10:53                     ` Georg Bauhaus
2007-07-26 16:58         ` Adam Beneschan
2007-07-29 11:38         ` Manuel Gomez
2007-07-27 10:16     ` Jeffrey R. Carter
2007-07-27 12:47       ` Maciej Sobczak
2007-08-26  7:18         ` David Thompson
replies disabled

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