qexo-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qexo-general] Iterating over Kawa lists


From: Jocelyn Paine
Subject: Re: [Qexo-general] Iterating over Kawa lists
Date: Wed, 10 Jul 2002 18:55:14 +0100 (BST)

> > The top-level interpreter is lying!
> 
> Smile when you say that ...
>
:-) 

No criticism intended Per: as I said, I like Qexo. It might help in
debugging occasionally, I suppose, were the print representation of
list(1,2,3,4) different from that of the container generated by the 
Qexo expression <list>1 2 3 4</list> . Certainly, it was noticing that
my Kawa-supplied lists got displayed as <list> ... </list> by the TLI,
that made me think they were and that this was a Kawa/Qexo special.
 
> How Qexo operations such as string-value and children work on values
> that are not in the XQuery value space is undefined.  We can extend
> these operations to be useful for Scheme lists, but there are different
> ways to do so, and the cleanest extension may not be the "obvious" one.
> 
> My intuition is that children applied to a Scheme list should return
> the elements of the sequence.  More generally for objects that implement
> gnu.lists.Sequence, which also includes Scheme vectors and strings.
> That looks like a relatively simple change.
>       --Per Bothner
> address@hidden   http://www.bothner.com/per/
> 
Yes, that seems good. I presume that more experience is gained, you'll be
designing and adding features that make it easy to pass data from one
language to the other, and operate on it even if it doesn't
"naturally" belong there. As you've done with Kawa and Java.

Cheers,

Jocelyn




reply via email to

[Prev in Thread] Current Thread [Next in Thread]