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

Re: typing and markup (was Re: XQuery types)


xquery programming with c
> At 03:49 PM 5/6/2002 -0400, Simon St.Laurent wrote:
> >On Mon, 2002-05-06 at 14:57, Uche Ogbuji wrote:
> > > Because I assumed we were talking about utility for XML, not general
> > > purpose programming, I ommitted  the 25 pages it requires to discuss
> > > the philosophy behind first-class dynamic typing without ambiguity.
> >
> >This discussion's gotten me thinking once again about whether XML is
> >appropriate to the tasks for which it is being sold. There was a long
> >discussion about types here a few years ago in which someone suggested
> >that the types provided by DTDs were in fact far too rich, and that
> >perhaps CDATA/ID/IDREF was already more than enough.  Then we get into
> >W3C XML Schema types, which I consider far too overgrown, and now XQuery
> >is in the type mire.
> 
> Frankly, I think much of this is because of the level of the discussion.
> 
> Suppose you try to multiply an integer times a URI. Do you want that error 
> to be caught? Suppose you want a sorted list of numbers - do you want to 
> sort them numerically rather than lexically? If so, types are good.

No one in this thread is saying that types are not good, note that the examples you give above are hardly peculiar to static types.


> Yes, 
> whoever implemented the system had to think to make that happen. We have 
> descriptions of the thinking implementors will have to do.
> 
> Has the strong static typing of Java gotten in your way as a programmer?

I know I'm just asking for trouble speaking throwing language flames, but yes.  Compared to programming in C or Python, programming in C++ or Java is like programming in a straitjacket.  Strong static typing (SST) is a big part of this, and not SST qua SST, but rather the fact that SST is tied so fundamentally to the facilities for user extension and generic programming.

There's good reason why people who give Python a good hard look (and get past the issue of significant whitespace) don't often turn back to Java.


-- 
Uche Ogbuji                                    Fourthought, Inc.
http://uche.ogbuji.net    http://4Suite.org    http://fourthought.com
Track chair, XML/Web Services One (San Jose, Boston): http://www.xmlconference.com/
DAML Reference - http://www.xml.com/pub/a/2002/05/01/damlref.html
RDF Query using Versa - http://www-106.ibm.com/developerworks/xml/library/x-think10/index.html
XML, The Model Driven Architecture, and RDF @ XML Europe - http://www.xmleurope.com/2002/kttrack.asp#themodel



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.