[Xpath-ng] More list issues

Uche Ogbuji uche.ogbuji at fourthought.com
Tue Dec 17 07:32:30 MST 2002


> Hi Uche,
> 
> > I agree with this possible inconsistency.  I did give one option for list 
> > syntax that would minimize the need for a list constructor:
> > 
> > ()
> > (1,)
> > (1,2)
> > 
> > etc.
> > 
> > I don't think I've heard any reaction to this.
> 
> I think the syntax is a bit odd. The '(1,)' case looks
> somewhat like a typo.

In its defense, this is the system used by Python, and I don't think I've 
heard it to cause any confusion once it has been explained.

> If we should go for specific syntax,
> I'd rather use the [] or {} pairs. But I'd prefer a function.

Jeni has already pointed out the problems with [] and {}.  I know you weren't 
convinced on {}'s interfering with AVTs, but I do think we should avoid using 
them, especially in such a central manner.

I do think we should come up with a syntactic solution to this, rather than a 
list constructor in the core.


-- 
Uche Ogbuji                                    Fourthought, Inc.
http://uche.ogbuji.net    http://4Suite.org    http://fourthought.com
A Python & XML Companion - http://www.xml.com/pub/a/2002/12/11/py-xml.html
XML class warfare - http://www.adtmag.com/article.asp?id=6965
MusicBrainz  metadata - http://www-106.ibm.com/developerworks/xml/library/x-thi
nk14.html





More information about the Xpath-ng mailing list