8000 Bring sets in line with language spec and enable by default · Issue #584 · google/starlark-go · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Bring sets in line with language spec and enable by default #584
Open
@tetromino

Description

@tetromino

Now that sets are part of the Starlark language spec (see bazelbuild/starlark#290), we should bring starlark-go's implementation in line with the spec and enable them by default.

Specifically:

  • disable even no-op mutation attempts on frozen/iterating sets by add() and discard()
  • disable comparison operator for sets (or make it flag-guarded?)
  • require both sides of |, &, -, and ^ operators (and their augmented forms) to be sets if lhs is a set
  • add multi-argument form of union(), intersection(), difference(), update()
  • add isdisjoint(), intersection_update(), difference_update(), symmetric_difference_update()

@aranguyen @brandjon FYI

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0