bug-guile
[Top][All Lists]
Advanced

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

Re: and-map and or-map not documented in the manual


From: Andy Wingo
Subject: Re: and-map and or-map not documented in the manual
Date: Wed, 08 Oct 2008 21:16:07 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

Hey Gregory,

On Wed 08 Oct 2008 18:19, Gregory Marton <address@hidden> writes:

> Hi Folks,
>
> A colleague just noticed that and-map and or-map, defined in boot-9.scm
> with some helpful comments above them, are not actually documented in
> the Guile Manual.  How might I go about adding them?

Good question. The thing is, they are the same as SRFI-1's `every' and
`any', which have a longer heritage; Common Lisp appears to call `any'
`some'.

I think the SRFI names are clearer[1], so you should use them. We have a
problem that we provide less general implementations[2] under strange
names[3].

So ideally instead of documenting them, if you're with me, we should
deprecate them, replacing them with their srfi-1 counterparts.

What do you think?

Andy

1. `and-map' implies that you can map syntax, which you cannot.
2. `and-map' doesn't handle multiple lists as `map' and `every' do.
3. I think only Chicken has and-map, and calls it `andmap'.
-- 
http://wingolog.org/




reply via email to

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