Skip to content

Bug in call-by-sharing? #58

Description

@raganwald

First, thanks for releasing JavaScript Allonge Six edition free to read online! I just started reading it and I think I'm going to have to buy a copy.

I think I found a bug in the first function in the 'call by sharing' section. The function

(value) => ((ref1, ref2) => ref1 === ref2)(value)

is described as always returning true, but actually it always returns false because the inner function is only applied to (value), not (value, value).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions