Bail out with a helpful error message when encountering an unused binding #254
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#254
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?
Given a String url...
Won't actually bind
url
variable to?url
, and will return an unfiltered list of entids. To me, that was surprising - I didn't realize I needed to explicitly name my inputs via an ":in" clause. So, this works as expected:[:find ?eid :in ?url :where [?eid :page/url ?url]]
.Similarly to how we bail on encountering unbound
:in
variables, perhaps we can also bail on encountering an unused input? It seems like a programming error, and should save people time as they're learning how to query.Currently we explicitly discard any bindings not mentioned in the :in clause.