Open
Description
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()
anddiscard()
- 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
Labels
No labels