From: "J-P. Rosen" <rosen@adalog.fr>
Subject: Re: A new notion: stronglly-typed-by-user language
Date: Fri, 16 Apr 2010 09:28:06 +0200
Date: 2010-04-16T09:28:06+02:00 [thread overview]
Message-ID: <hq93i8$bl6$1@news.eternal-september.org> (raw)
In-Reply-To: <bdbc2b7d-49bb-4372-901e-001f9e796da9@b33g2000yqc.googlegroups.com>
Maciej Sobczak a �crit :
> On 15 Kwi, 10:59, "J-P. Rosen" <ro...@adalog.fr> wrote:
>
>> "C++ is a strongly typed language, if conversions between logically
>> unrelated types are avoided".
>>
>> Ain't that cute?
>
> http://en.wikipedia.org/wiki/Strong_typing
>
> "these terms have been given such a wide variety of meanings over the
> short history of computing that it is often difficult to know, out of
> context, what an individual author means when using them."
Of course, there is obviously no clear-cut
[...]
> The statement that you cited is therefore not very convincing.
>
> In particular, what are "conversions between logically unrelated
> types"?
> Is Integer'Image such a conversion? What about arbitrary casts between
> numeric types? What about unchecked casts?
I was expecting someone to come up with Unchecked_Conversion, so you win :-)
Do not confuse "weakly type" and "strongly type with a mean to disable
it in a controlled way when absolutely necessary". Having no safety
belts in a car is not the same thing as having belts and not putting
them (as far as the car design is concerned).
What I find amusing (or characteristic of the C/C++ spirit) is the idea
that "if you are careful, it is good enough".
I generally conclude my presentations of Ada with two quotes. The first
one is from K&R, in one of the first books about C:
"C has been designed under the hypothesis that the programmes is
reasonable and knows what he's doing"
The other one from ARM's introduction:
"Concern for the human programmer was also stressed during the design"
C is not for humans...
--
---------------------------------------------------------
J-P. Rosen (rosen@adalog.fr)
Visit Adalog's web site at http://www.adalog.fr
next prev parent reply other threads:[~2010-04-16 7:28 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-15 8:59 A new notion: stronglly-typed-by-user language J-P. Rosen
2010-04-15 9:19 ` Martin Krischik
2010-04-16 0:22 ` BrianG
2010-04-16 6:26 ` Martin Krischik
2010-04-15 9:59 ` Dmitry A. Kazakov
2010-04-15 10:49 ` Georg Bauhaus
2010-04-15 21:31 ` Maciej Sobczak
2010-04-16 7:28 ` J-P. Rosen [this message]
2010-04-16 7:48 ` Dmitry A. Kazakov
2010-04-16 15:32 ` Maciej Sobczak
2010-04-16 16:52 ` Georg Bauhaus
2010-04-16 17:24 ` Dmitry A. Kazakov
2010-04-16 20:53 ` Pascal Obry
2010-04-16 21:51 ` Dmitry A. Kazakov
2010-04-16 20:20 ` J-P. Rosen
2010-04-16 20:50 ` Maciej Sobczak
2010-04-17 5:25 ` J-P. Rosen
2010-04-17 7:00 ` Dmitry A. Kazakov
2010-04-17 11:40 ` J-P. Rosen
2010-04-17 14:09 ` Dmitry A. Kazakov
2010-04-17 14:33 ` Maciej Sobczak
2010-04-17 18:57 ` J-P. Rosen
2010-04-17 22:02 ` Maciej Sobczak
2010-04-18 8:04 ` J-P. Rosen
2010-04-18 20:17 ` Maciej Sobczak
2010-04-16 7:29 ` Dmitry A. Kazakov
2010-04-16 10:34 ` xavier grave
2010-04-16 19:26 ` Gautier write-only
2010-04-18 0:27 ` Gene
2010-04-18 20:38 ` Gautier write-only
2010-04-19 8:46 ` Maciej Sobczak
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox