google / google/jsonnet

Allow arbitrary arrays for most set operations

Open
#895 3 comments 0 reactions 0 assignees View on GitHub
enhancement stdlib
Dominant language
Jsonnet
Stars
7.6k
Forks
475
PR merge metrics
No merged PRs in 30d

Description

Set operations like `setUnion` or `setDiff` technically are only valid on sets (sorted array). This can lead to nasty, hard-to-notice bugs when someone forgets about it.

We should consider relaxing the requirements on the input. Note that we will still need to maintain the requirement for `setMember` (unless we're willing to accept linear search there, which kinda defeats the point).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.