You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's confusing as a user to have equality checking optional.none() against null return false. This is the current implementation in cel-go and it seems "correct" looking at the spec.
However, for a user of CEL, not intimate with the internals of the language, would it make more sense to have optional.none() == null return true?
I'm planning on exposing CEL to non-technical users and I feel like this would be a common culprit.
The text was updated successfully, but these errors were encountered:
For legacy reasons, the types are comparable; however, I don't think they should be and I would prefer to restrict the comparison. CEL should be null hostile since null can really only occur when the value comes from JSON or from a protobuf wrapper type such as google.protobuf.Int32Value. I may add a restriction as one of the canonical, extended validations.
That said, we've had a different conversation about optional.of(null) == optional.none(), which we feel is a change we need to make as well.
I've been trying Optionals through
cel-go
.It's confusing as a user to have equality checking
optional.none()
againstnull
returnfalse
. This is the current implementation incel-go
and it seems "correct" looking at the spec.However, for a user of CEL, not intimate with the internals of the language, would it make more sense to have
optional.none() == null
returntrue
?I'm planning on exposing CEL to non-technical users and I feel like this would be a common culprit.
The text was updated successfully, but these errors were encountered: