Re: index/cursor merging [was: 120 days] Per Bothner 04 Apr 2016 02:55 UTC


On 04/03/2016 05:44 PM, Alex Shinn wrote:
> I think Kawa would want to use a disjoint cursor type.

That's possible, but fragile.  A string-cursor is a distinct
type in Kawa - which is implemented  using the same unboxed 32-bit
int that are used for indexes.  The two can be distinguished at compile-time,
but the JVM run-time representations are the same.  However, when a string-cursor
is *boxed* then a different class is used, so it is possible to distinguish them.

For Kawa I'm focusing on generic sequence functions, including relatively cheap substrings,
so SRFI-130 isn't a priority.
--
	--Per Bothner
xxxxxx@bothner.com   http://per.bothner.com/