guile-user
[Top][All Lists]
Advanced

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

Re: association list bug? -- version 1.6.4


From: Jon Wilson
Subject: Re: association list bug? -- version 1.6.4
Date: Tue, 15 Nov 2005 13:11:22 -0600
User-agent: Mozilla Thunderbird 1.0.2 (X11/20050324)

Hi Ludovic,

This is clearly not possible because `assq' et al. are part of R5RS and
`assoc-ref' has been part of Guile for a very, very long time.

Fair enough.

One just has to be very careful when reading the manual.  ;-)

The manual says

"Like assq, assv and assoc, except that only the value associated with key in alist is returned."

which seems to suggest (incorrectly, obviously) that the arguments to both assoc and assoc-ref should be the same. Perhaps, given that it seems that a fairly large number of people have misread the manual and gotten confused about this, it would be helpful to add a phrase explicitly pointing out that the argument order is reversed. For example,

"Like assq, assv, and assoc (with argument order reversed), except that only the value associated with key in alist is returned."

One shouldn't have to be quite so very careful when reading the manual.
Regards,
Jon




reply via email to

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