[Xpath-ng] More list issues
Uche Ogbuji
uche.ogbuji at fourthought.com
Tue Dec 17 06:32:15 MST 2002
> Probably this is already on Jeni's mind, but if we have
> the function list (...) as a list constructor, I guess we
> need another function for standard conversion to lists:
> to-list (object), or as-list (object) or similar. I think we've
> touched this before but I was just wondering about the
> name which would be a little bit inconsistent with the other
> conversion functions. But maybe it's not a big problem.
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.
In any case, I would like list() to be reserved for conversion to lists, and
if we need a list constructor, we can always come up with
new-list()
make-list()
list-items()
Or something like.
--
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