Re: is #f a valid index? Marc Nieper-Wißkirchen 30 Jun 2020 10:01 UTC

Am Di., 30. Juni 2020 um 11:52 Uhr schrieb Duy Nguyen <xxxxxx@gmail.com>:

> I figured as much, but why would you want that? Index-as-fixnum is
> returned by plenty other functions, using fixnum for byte offset just
> opens more opportunity of using a fixnum for a wrong purpose. Plus

This is due to SRFI 130's adhoc polymorphism, I believe.

> byte offset is not useful in scheme anyway, you can't access any
> character with a byte offset unless you go through a horrible process
> of converting a string to u8vector or something.

The implementation should have ways to access the underlying Unicode
character at a byte offset.