[Xpath-ng] More list issues

David Rosenborg darolst at pantor.com
Tue Dec 17 12:06:20 MST 2002


Uche wrote:

> > The rationale for not having a special list constructor syntax is that most
lists
> > will be created as the result of calling other funtions or location path
> > expressions.
>
> So do you think we could do without a list constructor in the core?  And
> list() is purely a conversion?

I do think we need a way to create lists explicitly, I just don't think we need
a special syntax for it (if we can't find a good one). A function would do just
fine. The only problem was the name of the function. If it's called list, the
list
conversion function must have another name and that would be inconsistent
with other conversion functions. My feeling is that this inconsistency would
actually be acceptable. Otherwise we have to come up with another name
for the list constructor. You suggested new-list, make-list,  and list-items.
Maybe just items (...) would do. I've no strong feeling about the name at
this point, I'll have to think about it some more.

Cheers,
David




More information about the Xpath-ng mailing list