Skip to content

Inconsistent empty splat assignment #858

Description

@summivox
[..., a, b] = [1]
[...x, y, z] = [1]
a is void and b is 1 and
x.length is 0 and y is 1 and z is void

Since line 2 is widely accepted as the correct behavior (i.e. splat cannot "unconsume") I don't see why line 1 shouldn't.

Activity

  1. added a commit that references this issue on Feb 21, 2016
    f18a91c
  2. vendethiel commented on Feb 21, 2016

    @vendethiel
    Contributor

    Seems correct. Also a breaking change.

  3. summivox commented on Feb 21, 2016

    @summivox
    ContributorAuthor

    Also a breaking change

    Maybe label this for 2.0 and forget about it for now 😉

  4. vendethiel commented on Feb 21, 2016

    @vendethiel
    Contributor

    Yes, probably.

  5. added a commit that references this issue on Mar 2, 2016
    62a8eb5
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