[r6rs-discuss] [Formal] String positions and string slices

From: Marcin 'Qrczak' Kowalczyk <qrczak>
Date: Tue, 10 Apr 2007 21:24:28 +0200

Dnia 09-04-2007, pon o godzinie 19:12 -0400, William D Clinger
napisa?(a):

> (text-position=? position1 position2)
>
> True iff both positions identify the same positions within
> the same text. Should run in O(1) time.

If text is immutable, then the concept of ?same text? is unclear:

? If it means eqv?, then achieving O(1) is impractical.

? If it means eq?, then it distinguishes cases for which there is
  no practical reason to distinguish them (when distinct text objects
  contain equivalent text).

-- 
   __("<         Marcin Kowalczyk
   \__/       qrczak at knm.org.pl
    ^^     http://qrnik.knm.org.pl/~qrczak/
Received on Tue Apr 10 2007 - 15:24:28 UTC

This archive was generated by hypermail 2.3.0 : Wed Oct 23 2024 - 09:15:01 UTC