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

questionable syntax choices for XQuery

From: Volkmann, Mark <Mark.Volkmann@AGEDWARDS.com>
Date: Mon, 19 Apr 2004 07:42:23 -0500
Message-Id: <89539780CB9BD51182270002A5897DF60C02287C@hqempn04.agedwards.com>
To: "'www-ql@w3.org'" <www-ql@w3.org>
I dove into learning about XQuery this weekend.  While I like what I see, I
think some questionable syntax choices have been made.  Here are three of

1) Why is a semi-colon required at the end of a user-defined function
defintion?  It's clear that the end has been reached when '}' is
encountered.  I don't see how requiring a terminationg ';' makes parsing any
easier.  This is a known gotcha in C++.  I hate to see XQuery borrow a
syntax feature that is already a known issue.

2) Smilies are an odd choice for comment delimiters.  Why choose something
that isn't used by any other common programming languages?

3) Why use ':=' in let clauses instead of simply '='?  You know an
assignment is coming because of the presence of the keyword 'let'.  I don't
see how '=' could be confused for meaning something other than assignment in
that context.

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 Monday, 19 April 2004 08:43:23 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:43:43 UTC