[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Predicate for true lists
From: |
Drew Adams |
Subject: |
RE: Predicate for true lists |
Date: |
Sat, 7 Jul 2018 07:42:56 -0700 (PDT) |
> > > > IIRC, the main motivation for adding this function was
> > > > to provide a predicate for testing properness.
> > >
> > > Then I'd prefer calling the function proper-list-p (and returning the
> > > list length when it's a proper list) than the other way around.
> >
> > Then discoverability of the use for length is reduced.
>
> Not if we state in the doc string that the value returned
> for proper lists is the list length.
I disagree, but it's not the end of the world if you
don't provide the alias.
I was referring to _discoverability_ by looking for a
function with a name that suggests "length". (And vice
versa, if you are looking for a predicate and the only
name that exists says "length".)
Help functions that work off of the function name will
not be very helpful in finding the other function, if
only one name is provided. This function has two quite
different use cases, and it would help to have two
corresponding aliases.
Re: Predicate for true lists, Paul Eggert, 2018/07/06
- Re: Predicate for true lists, Eli Zaretskii, 2018/07/07
- Re: Predicate for true lists, martin rudalics, 2018/07/07
- Re: Predicate for true lists, Paul Eggert, 2018/07/07
- Re: Predicate for true lists, Eli Zaretskii, 2018/07/07
- Re: Predicate for true lists, Basil L. Contovounesios, 2018/07/07
- Re: Predicate for true lists, Eli Zaretskii, 2018/07/07
- Re: Predicate for true lists, Basil L. Contovounesios, 2018/07/07
- Re: Predicate for true lists, Eli Zaretskii, 2018/07/07
- Re: Predicate for true lists, Paul Eggert, 2018/07/07