Closed SamWheating closed 1 year ago
Thanks for the super thorough review - I think I have addressed all of your feedback now and I left a few discussions open where I need some additional confirmation.
Thanks for the review, got everything addressed aside from a few open discussions.
While you're here - how would you feel about adding built-in set parsing and set comprehension? I'd be interested in working on the implementation but also think this might be too much divergence from the official spec.
how would you feel about adding built-in set parsing and set comprehension? I'd be interested in working on the implementation but also think this might be too much divergence from the official spec.
I would rather not implement those since they change the dialect accepted by the parser. If you can persuade the Bazel folks to accept set as a standard feature, then these expressions would be appropriate, but I don't think they feel much need for it.
Thanks again for contributing this, and for your patience during the review.
Re: https://github.com/google/starlark-go/issues/492
Added
set.add(x)
,set.pop()
,set.remove(x)
,set.discard(x)
,set.clear()
, as well as updates to the Spec and tests.Demo: