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

RE: Cranky old farts and the static typing critics (was Re: [

  • To: "Mike Champion" <mc@x...>,<xml-dev@l...>
  • Subject: RE: Cranky old farts and the static typing critics (was Re: Ten new XQuery, XSLT 2.0 and XPath 2.0 Working Drafts)
  • From: "Dare Obasanjo" <dareo@m...>
  • Date: Fri, 9 May 2003 12:23:24 -0700
  • Thread-index: AcMWXYiDUKcG5CYwS9mHPo1HcuKAsQAADVtQ
  • Thread-topic: Cranky old farts and the static typing critics (was Re: Ten new XQuery, XSLT 2.0 and XPath 2.0 Working Drafts)

old farts
Static typing is not the same as strong typing. It's hard to have a
discussion if people can't get figure out exactly what they are talking
about. As for static vs. dynamic typing, a number of folks I know who
work with XML seem to like the capabilities of strongly typed dynamic
languages just as much or more than strongly typed static languages. 

In the context of XQuery, which is what this thread was originally about
users can have both as Micheal Rys pointed out the working group has
taken care to design the language in that way. I can as easily write 

  
 define function summary($teacher as element()*) as xs:integer {
count($teacher/student) } 

as I can 


  import schema namespace myns ="http://www.example.org" 
            at "http://www.example.org/school.xsd"

  define function summary($teacher as element(myns:teacher)*) as
xs:integer { count($teacher/myns:student) } 

-- 
PITHY WORDS OF WISDOM 
Mincing your words is a good thing because you may have to eat them
later.                                             

This posting is provided "AS IS" with no warranties, and confers no
rights. 

>  
>  
> -----Original Message-----
> From: Mike Champion [mailto:mc@x...] 
> Sent: Friday, May 09, 2003 12:01 PM
> To: xml-dev@l...
> 
> 
> > <Quote>
> > XML-DEV is a festival of cranky old men complaining about 
> the "youth 
> > of today" and how things were better in the XML world in 
> the old days.
> > </Quote>
> 
> http://www.tbray.org/ongoing/When/200x/2003/05/08/FutureLanguage
> "there's some powerful intellectual ferment in progress out 
> there. This may be the golden age of programming, as Paul 
> Graham argues, and maybe everything we thought we knew about 
> strong typing is wrong."
> 
> Just who is a cranky old fart these days, the "XML is just 
> text, dammit" 
> SGML dinosaurs, or the "Static type checking will solve your 
> problems" 
> young turks?  As former young turk who is now a cranky old 
> dinosaur once put it back in the Dark Ages, "Don't speak too 
> soon, for the wheel's still in spin, and the times they are 
> a' changin."
> 
> 
> 
> 
> 
> 
> 
> 
> -----------------------------------------------------------------
> The xml-dev list is sponsored by XML.org 
> <http://www.xml.org>, an initiative of OASIS 
> <http://www.oasis-open.org>
> 
> The list archives are at http://lists.xml.org/archives/xml-dev/
> 
> To subscribe or unsubscribe from this list use the subscription
> manager: <http://lists.xml.org/ob/adm.pl>
> 
> 

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.