W3C home > Mailing lists > Public > www-ql@w3.org > April to June 2004

RE: questionable syntax choices for XQuery

From: Michael Rys <mrys@microsoft.com>
Date: Thu, 22 Apr 2004 12:13:12 -0700
Message-ID: <EB0A327048144442AFB15FCE18DC96C702B146A9@RED-MSG-31.redmond.corp.microsoft.com>
To: "Volkmann, Mark" <Mark.Volkmann@AGEDWARDS.com>, "Per Bothner" <per@bothner.com>
Cc: <www-ql@w3.org>
In Ruby, newline is an explicit separator. XQuery does not use newlines
as separators (and hopefully never will). There is not difference
between a newline (which one? :-)) or ; as separator. Either has to be
used.

 

Best regards

Michael

 

PS: I have no problem with making ; optional though...

 

  _____  

From: www-ql-request@w3.org [mailto:www-ql-request@w3.org] On Behalf Of
Volkmann, Mark
Sent: Thursday, April 22, 2004 11:16 AM
To: 'Per Bothner'
Cc: 'www-ql@w3.org'
Subject: RE: questionable syntax choices for XQuery

 

> -----Original Message----- 
> From: Per Bothner [mailto:per@bothner.com] 
> Sent: Thursday, April 22, 2004 10:54 AM 
> To: Volkmann, Mark 
> Cc: www-ql@w3.org 
> Subject: Re: questionable syntax choices for XQuery 
> 
> Volkmann, Mark wrote: 
> 
> > Ruby is an example of a programming language that doesn't 
> require any 
> > kind of statement terminating character. 
> 
> http://www.ruby-lang.org/en/man-1.4/syntax.html#program says 
> otherwise: 
> 
> "Ruby programs are sequence of expressions. Each expression are [sic] 
> delimited by semicolons(;) or newlines. Backslashes at the 
> end of line 
> does not terminate expression." 

The key part of that is "or newlines".  Most Ruby programmers only use
semicolons in order to put more than one expression on the same line,
which isn't common.



------------------------------------------------------------------------
-------------
A.G. Edwards & Sons' outgoing and incoming e-mails are electronically
archived and subject to review and/or disclosure to someone other 
than the recipient.

------------------------------------------------------------------------
-------------
Received on Thursday, 22 April 2004 15:13:58 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 22 July 2006 00:10:19 GMT