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

Re: error trapping

  • From: John Cowan <cowan@l...>
  • To: James.Anderson@m...
  • Date: Tue, 19 Oct 1999 13:40:35 -0400 (EDT)

error trapping
james anderson scripsit:

> one intrinsic problem with java parsers is that the java control model forces
> exceptions to unwind from the initiator's dynamic  context before the handler
> obtains control.

It is no accident that C++ and Java have termination semantics only
for their exceptions.  Unfortunately I cannot find a citation to this
story, but it is instructive.

Mesa, a dialect of Pascal with modules, exceptions, and many other things,
was the language of a group at Xerox PARC.  Its exceptions were
defined with resumption semantics.  Over the course of many years of
large-scale development, including the Xerox Star and ViewPoint
document workstations, it was found that wherever resumption was
actually employed, it was invariably buggy.  One by one, resumptive
exception handlers were tracked down and removed, until in the end
nothing was left but termination.

The essential problem with resumption, IMHO, is that it breaks
encapsulation: the resumptive handler is written by the author of the
calling routine, but runs as a friend of the called routine.
To work correctly, then, the caller must know everything about the
callee.

-- 
John Cowan                                   cowan@c...
       I am a member of a civilization. --David Brin

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To unsubscribe, mailto:majordomo@i... the following message;
unsubscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)



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.