[query] Rudimentary static evaluation of predicates #150
Labels
No labels
A-build
A-cli
A-core
A-design
A-edn
A-ffi
A-query
A-sdk
A-sdk-android
A-sdk-ios
A-sync
A-transact
A-views
A-vocab
P-Android
P-desktop
P-iOS
bug
correctness
dependencies
dev-ergonomics
discussion
documentation
duplicate
enhancement
enquiry
good first bug
good first issue
help wanted
hygiene
in progress
invalid
question
ready
size
speed
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: greg/mentat#150
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Should we see a query with an expression like
[(< ?x ?y)]
, and it turns out that both?x
and?y
are known — by deduction from the schema, by input binding, by deduction (e.g., for a boolean-valued variable, we might also have[(!= ?y true)]
, which allows us toground
?y
tofalse
) — then we have an opportunity to compute the value prior to executing the query.This ticket covers the basics: taking a pattern like
[(< 5 4)]
and marking the pattern asis_known_empty
.