[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: The Airplane Example (static typing permathread?)


example of typing


On Wed, 5 Jan 2005, Uche Ogbuji wrote:

> On Wed, 2005-01-05 at 09:57 -0600, Bullard, Claude L (Len) wrote:
> > Umm... it may not catch all but it may catch most and
> > that may be good enough or as good as it gets.
>
> What do you mean by "it" in the above sentence?  Do you mean "static
> type checking"?  If so, what makes you think that?

Maybe just personal experience.  I still vividly recall excitement of
learning to program in Standard ML about 10 years ago (after having had
some experience with Pascal, Lisp/Scheme, C++, Prolog): the type checker
would catch lots of coding mishaps that I previously had to debug during
testing.  A simple program, after being Ok'ed by the typechecker, would
just run correctly the first time -- a big rarity in my prior experience.
Of course, more complex programs can still contain errors, but of more
serios nature, "logical", or "modeling".  Type systems are too simple
mechanisms to catch those.  One point static typing proponents make is:

   Why one should write unit tests to check for simple errors, if those
   can be checked automatically by a compiler?  Moreover, the compiler can
   _guarantee_ that a whole class of errors was cleared out from the
   program. Unit tests are a potentially powerful, but a more expensive
   technique, so after the static typechecker has cleared out simple bugs,
   unit tests (and other testing techniques) can concentrate on verifying
   more complex requirements.

If you did have experience programming in a modern strongly and statically
typed language like SML, OCaml, or Haskell, and still do not see their
benefits...  I am sorry for the above lecturing.  Perhaps it is useless to
spend your energy on discussions like this -- static typing enthusiasts
are as convinced in their point as you are in yours.

If the situation is opposite, you can be pleasantly surprized how close to
Python those languages are!

Cheers,

Vladimir

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.