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

Re: overrun with bohemians?


Re:  overrun with bohemians?
From: "Miles Sabin" <miles@m...>


> Robin Berjon wrote,
> > if there's anything to learn from programming languages, it's clear
> > that it should *never* be enforced, and *never* be made necessary.
> 
> Au contraire ... with programming languages typing should _always_ be 
> enforced and _always_ be necessary. If that causes you grief, then 
> you're probably using the wrong language.
 
I think we need to draw the line between different kinds of "typelessness".

There is 
    * late binding (where the information needed for typing is only available
     at the last minute)
    * reflection (where the object carries its type information around)
    * casting (where the language or some context forces a thing to be 
        treated a certain type)
    * generic operations (where, rather than a thing having no type, it 
        is deemed to have some very generic operations, such as equality testing
        only)
    * dynamic typing, where a value is looked at, and the type is selected from
        it according to lexical hints
    * typelessness, at an extreme where an operation occurs without any
    checking on some kind of memory location or a pointer. 

The occurrences of these in XML might be
    * late binding, such as in XML Schemas when you may access base
        types very late
    * reflection, such as using xsi:type to figure out the type
    * casting, such as where a query treats some text as a particular type
    * generic operations, pretty much what XML is without XML Schemas,
        wander around trees and look a strings.
    * dynamic typing, such as the = operation in XSLT

 I don't really see any typelessness at work in XML: it seems to be a property
of languages rather than data. 

Cheers
Rick Jelliffe

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.