Closed yannham closed 3 weeks ago
Closes #1945.
Perhaps surprisingly, std.record.get_or "a" true {a} would error out instead of returning true. This commit fixes it by only fetching the value from the record if the field is present AND it is defined.
std.record.get_or "a" true {a}
true
Closes #1945.
Perhaps surprisingly,
std.record.get_or "a" true {a}
would error out instead of returningtrue
. This commit fixes it by only fetching the value from the record if the field is present AND it is defined.