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

Re: [ANN] Candle 0.8 - a new scripting language for XML


type of candle
XML is already given. And we cannot change it to make it a strong typed 
markup language.
However, is it better for an markup language to be strong typed if 
invented from scratch?

We may want to look at the history of high level programming languages. 
The early languages like Fortran and Basic were not strong-typed. But as 
C come out to be strong-typed, people realize the benefits, it helps 
avoid mistakes in the code.

So does a strong-typed markup like Candle lose anything comparing to 
XML? Is it less extensible or flexible in anyway?
You are invited to give comments.

The fundamental concept behind Candle type system is that all values in 
the markup are strong-typed to be one of the pre-defined types. It is 
impossible to define all possible types people want and give each an 
unique syntax, so Candle's syntax hinting is only provided for a set of 
predefined types. And Candle type system has been designed to be a 
closed type system, that is any Candle expression on any Candle 
pre-defined types results in some pre-defined type in Candle. So that we 
don't have to invent new syntax everyday. Schema can then be used to 
extend or constrain on the pre-defined type and thus Candle should be as 
extensible as XML.

This is like in C, you can define your struct and union as complicated 
as you like, but the primitive types in the language are just that many.

Henry

Elliotte Harold wrote:

> "XML is only semi-structured with no explicit type information." is a 
> feature, not a bug. Removing it makes the data less useful, and the 
> format fairly uninteresting. XML would not be where it is today if it 
> featured strong data typing.
>


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.