Article View: comp.lang.java
Article #249Re: Will Java kill C++? (definition of strong typing)
From: Robin Rosenberg
Date: Sun, 14 Apr 1996 22:49
Date: Sun, 14 Apr 1996 22:49
43 lines
2308 bytes
2308 bytes
Perhaps a side issue but my cents on the use and misuse of techical term. Alan L. Lovejoy wrote: > > Doug Bell wrote: > (with parts where substantial agreement has been reached left out) >> [...] > [lots of probably true stuff deleted] [attempt at defininf typing partially deleted] > The correct definition of "strong typing" is that type errors are prevented > from occuring. An example of a type error would be applying the integer > addition machine instruction to a 32-bit floating point value, and then > using the result as though it meant something. > > Smalltalk, LISP and Java are all strongly typed. Only Java is also statically > typed. Type errors can occur in both C and C++, so they are statically > but not strongly typed. We have been reading different books. My book (Eliis Horowitz: Fundamentals of Programming Languages, Springer Verlag, 1984) says (quote, p.38.) "A language is said to be *strongly typed* if the type of all expressions is known at compile-time". Hence Smalltalk and LISP are *not* strongly typed. Perhaps you would like to refer to your source? > Whether static typing is good or not is another religious issue that > I will refrain from addressing. Agree. [cut}] > > --Alan -- Robin Rosenberg, | Voice: +46-8-7036200 | OO consulting, education Enator Objective | Fax: +46-8-7036283 | and mentoring since Management AB | Mail: rrg@funsys.se | 1985. "Any opinions above are my own, etc. etc."
Technical Details
Message-ID:
<3171810F.2E2@funsys.se>Path:
arc1-ca.pugleaf.net!mn4.swip.net!funsys!funsys.seReferences:
<31682FFE.2781E494@bbn.com> <DpJyGG.FKK@hkuxb.hku.hk> <denatale-1004960822260001@grail1506.nando.net> <dbell-1104960125190001@wholder2.cts.com> <goochb.327.000893D1@rwi.com> <dbell-1104961159050001@wholder2.cts.com> <316D8523.74D7@concentric.net> <dbell-1Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!mn4.swip.net!funsys!funsys.se From: rrg@funsys.se (Robin Rosenberg) Newsgroups: comp.lang.java,comp.lang.c++,comp.lang.smalltalk Subject: Re: Will Java kill C++? (definition of strong typing) Message-ID: <3171810F.2E2@funsys.se> Date: 14 Apr 96 22:49:51 GMT References: <31682FFE.2781E494@bbn.com> <DpJyGG.FKK@hkuxb.hku.hk> <denatale-1004960822260001@grail1506.nando.net> <dbell-1104960125190001@wholder2.cts.com> <goochb.327.000893D1@rwi.com> <dbell-1104961159050001@wholder2.cts.com> <316D8523.74D7@concentric.net> <dbell-1 Sender: usenet@funsys.funsys.se Reply-To: rrg@funsys.se Followup-To: comp.lang.java Organization: Enator Objective Management AB X-Mailer: Mozilla 3.0B2 (Win95; I) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit