Lists Home |
Date Index |
I basically agree with everything you've said here. I appear to have
misinterpreted your original note as saying that you thought that
conditional expressions and loops were superfluous because there already
were statements with this functionality. Sorry for the error.
----- Original Message -----
From: "Jeni Tennison" <firstname.lastname@example.org>
To: "Jeff Greif" <email@example.com>
Cc: "Jonathan Robie" <firstname.lastname@example.org>;
Sent: Friday, May 10, 2002 1:13 AM
Subject: Re: [xml-dev] XPath 2.0 - how much of XQuery should it include?
> Hi Jeff,
> > Lisp provides loops and conditionals as expressions. They are
> > incredibly useful, since loops and conditionals can return values
> > and be nested inside other expressions. All the C based languages
> > (including Java) have conditional expressions, written as (condition
> > ? result-if-true : result-if-false).
> Quite. As I said, that's precisely the kind of conditional
> *expression* that I'd love to see in XPath 2.0. What I don't want is a
> conditional *statement*. All the C based languages, including Java
> have both: they have a conditional statement: