google / google/jsonnet

Equality semantics not defined in the spec

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

Description

Only `std.primitiveEquals` is defined, but not full equality.

Equality behaves in a fairly intuitive way, but it still should be described. There are certain boundary cases, e.g. the short-circuiting when checking object equality:

```
{
a: 1,
b: function() 42
} == {a: 2}
```
vs
```
{
a: function() 42
b: 1,
} == {b: 2}
```

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.