comp.lang.ada
 help / color / mirror / Atom feed
From: "Jean-Pierre Rosen" <rosen.adalog@wanadoo.fr>
Subject: Re: Text_IO for other standard types
Date: 1998/01/11
Date: 1998-01-11T00:00:00+00:00	[thread overview]
Message-ID: <69cfdt$3q$1@peuplier.wanadoo.fr> (raw)
In-Reply-To: 98010912585349@psavax.pwfl.com

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1571 bytes --]


Marin David Condic, 561.796.8997, M/S 731-96 a �crit dans le message
<98010912585349@psavax.pwfl.com>...
>    And while we're at it, would there be some food value in requiring
>    a few extra predefined types? I'm thinking of predefined Modular
>    types similar to predefined Integer types and possibly some
>    convenient Decimal Fixed Point types (most commonly used for
>    money, I suppose).
>
>    My reasoning for having these and their corresponding predefined
>    I/O instantiations is that it would make the language easier to
>    teach. Generics and even to some extent type declarations
>    themselves can be inaccessible to the beginning programmer or a
>    programmer familiar only with more primitive languages. Having
>    predefined types for modular numbers would enable one to teach or
>    discuss modular math & build simple programs to illustrate this
>    without having to delve into the heavier concepts of type
>    definition or generic instantiation.
NO, NO, NO, NEVER.
One of the most important things in Ada teaching is to train people to
design types according to the problem domain, and forget about predefined
types. Forcing people to forget about Integer is in my experience one of the
most difficult things.
OTOH, teaching a total newcomer about type definitions, and about the fact
that you cannot add apples and oranges is easy, easier than to an
experienced programmer.

More predefined types would be a help only if you teach Ada the same way
that you teach other languages, and (IMHO) that's the last thing to do.






  parent reply	other threads:[~1998-01-11  0:00 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-01-09  0:00 Text_IO for other standard types Marin David Condic, 561.796.8997, M/S 731-96
1998-01-10  0:00 ` Nick Roberts
1998-01-10  0:00 ` Tarjei T. Jensen
1998-01-10  0:00   ` Robert Dewar
1998-01-11  0:00     ` Tarjei T. Jensen
1998-01-11  0:00       ` Robert Dewar
1998-01-12  0:00         ` Tarjei T. Jensen
1998-01-11  0:00       ` Robert Dewar
1998-01-11  0:00 ` Jean-Pierre Rosen [this message]
1998-01-14  0:00   ` Dale Stanbrough
1998-01-14  0:00     ` Robert Dewar
1998-01-14  0:00       ` Tarjei T. Jensen
1998-01-14  0:00         ` Robert Dewar
1998-01-15  0:00           ` Speeding up Text_IO Nick Roberts
1998-01-16  0:00             ` Robert Dewar
  -- strict thread matches above, loose matches on Subject: below --
1998-01-12  0:00 Text_IO for other standard types Marin David Condic, 561.796.8997, M/S 731-96
1998-01-15  0:00 Marin David Condic, 561.796.8997, M/S 731-96
1998-01-15  0:00 ` Nick Roberts
1998-01-15  0:00 ` Robert Dewar
1998-01-15  0:00 ` Robert Dewar
1998-01-16  0:00   ` Nick Roberts
1998-01-16  0:00     ` Robert Dewar
1998-01-17  0:00       ` Geert Bosch
1998-01-17  0:00         ` Robert Dewar
1998-01-17  0:00 ` Jean-Pierre Rosen
1998-01-17  0:00   ` Robert Dewar
1998-01-18  0:00     ` Michael F Brenner
1998-01-19  0:00 Marin David Condic, 561.796.8997, M/S 731-96
1998-01-20  0:00 Marin David Condic, 561.796.8997, M/S 731-96
1998-01-21  0:00 ` Jean-Pierre Rosen
replies disabled

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