Re: index/cursor merging [was: 120 days]
Alex Shinn 04 Apr 2016 00:44 UTC
On Mon, Apr 4, 2016 at 4:15 AM, Per Bothner <xxxxxx@bothner.com> wrote:
>
> On 04/02/2016 09:29 AM, John Cowan wrote:
>>
>> Cursors need not be heap allocated if they are negative fixnums, which
>> is explicitly called out as legitimate. 0 is both a cursor and an index
>> under this scheme, but that's all right, because it means the same thing
>> in both cases.
>
> I feel very uncomfortable with this approach. It seems very error-prone.
>
> There is a minor performance hit for testing index vs cursor, but it
> probably only matters for string-ref/cursor.
I think Kawa would want to use a disjoint cursor type.
--
Alex