Mirror of https://github.com/cue-lang/cue cuelang.org
cue go
Something went wrong. Try again.
all: replace cue.Value.Null with IsNull when we just need a bool master
Null returns a full error when a cue.Value is not a null, which allocates unnecessarily when the caller just needs to have the boolean rather than the full error when it's not a null. Signed-off-by: Daniel Martí <mvdan@mvdan.cc> Change-Id: I5940530257b3fddfa51b97cfdbf5daf018604e87 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1227396 Reviewed-by: Matthew Sackman <matthew@cue.works> Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com> TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Author Daniel Martí Date (Dec 3, 2025, 1:36 PM UTC) Commit 9461bd29 9461bd296caec1abb7da62adfa436b469d4a86f2 Parent e190842f e190842fd587d8a296c7e77e3cfa3cf089bcfb77