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

vector compare

This page is part of the web mail archives of SRFI 67 from before July 7th, 2015. The new archives for SRFI 67 contain all messages, not just those from before July 7th, 2015.



The default compare for vectors is unusual, and more critically it is
incompatible with the default compare for lists and strings.
The latter are both lexicographic compare.  I couldn't find a
rationale for this difference.

Note that this difference makes it difficult to have a unified
"sequence hierarchy" as in Common Lisp.  The problem is that
ordering is defined in terms of *implementation* types rather
than semantics.

I suggest using lexicographic compare for all "sequence" types.
--
	--Per Bothner
per@xxxxxxxxxxx   http://per.bothner.com/