Skip to content

Can receivers change return values? #25

Open
@samuelgoto

Description

@samuelgoto

@ljharb's feedback:

Is it possible for receivers to change the value that gets returned? For example:

function a() {
  unless (false) {
    return 1;
  }
  return 2;
}

Is it possible, in any way, for unless to control what gets returned to a independently of what the block param returns lexically?

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