The member? bug #11
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: simon/post-scarcity#11
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This is not a bug actually in
member?, butmember?exercises/demonstrates it.If you run the following code:
You get a non-terminating recursion thus:
In other words, when
member?recurses down to the last item in the collection,CDRcorrectly returnsnil, butmember?then recurses with its.... oh, jings, I think I've got it.We're binding
collectiontonilin the dynamic environment. And then we're looking in the dynamic environment for the binding, and the first one we hit isnil, so we take the second one...?Worth checking.
This is in commit #
7d0ce67373, although the bug has certainly been present in all commits up to this one.