RE: questionable syntax choices for XQuery

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 UTC