[Top][All Lists]

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

RE: Internationalize Emacs's messages (swahili)

From: Drew Adams
Subject: RE: Internationalize Emacs's messages (swahili)
Date: Fri, 1 Jan 2021 16:25:39 -0800 (PST)

> > The question is what it should be for dotted
> > lists (and circular lists).  What is your
> > reasonable expectation for dotted lists?
> I do not have an expectation for dotted lists except it should not
> traverse the whole list in order to find out, if it is dotted or not.
> That would defeat the whole idea.  It should do the minimum work
> necessary to determine the predicate value and not bother with
> determining if the list is dotted or circular.

Nothing in what I've written just traverses the
whole list.

The point of this thread is to have predicates
that check whether the length of a list (or
sequence) is < = or > some number WITHOUT always
having to traverse it entirely to get the answer.

[Of course, if the answer to (length= foo 42)
is YES then `foo' will be visited to its end,
in some way (e.g. `nthcdr') or other.]

All I've suggested is that instead of throwing
an error we return the obvious answer for each
case.  That's no more work than actually throwing
the error, AFAIK.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]