RE: questionable syntax choices for XQuery

"Michael Rys" <[email protected]>
Newsgroups gmane.comp.web.query-languages
Message-ID <EB0A327048144442AFB15FCE18DC96C702B146A9@RED-MSG-31.redmond.corp.microsoft.com>
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: [email protected] [mailto:[email protected]] On Behalf Of
Volkmann, Mark
Sent: Thursday, April 22, 2004 11:16 AM
To: 'Per Bothner'
Cc: '[email protected]'
Subject: RE: questionable syntax choices for XQuery

 

> -----Original Message----- 
> From: Per Bothner [mailto:[email protected]] 
> Sent: Thursday, April 22, 2004 10:54 AM 
> To: Volkmann, Mark 
> Cc: [email protected] 
> 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.

------------------------------------------------------------------------
-------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.