RFC: Clarify where vs when Keyword Semantics #55
Closed
KrisSimon
started this conversation in
Language Design
Replies: 1 comment
-
|
It should be clear, that |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Problem
Two keywords express conditions with subtle distinctions:
when<Log> ... when <exists> is true.wherefor each <user> in <users> where <active> is truewhere<Retrieve> ... where <id> is <user-id>.Examples
Issue
whereisn't a preposition but breaks the preposition-centric designSemantic Analysis
whenwhereProposed Solution
Keep both but document clearly:
when= Statement-level guard (single statement conditional)where= Collection/query filterQuestions
wherebecome a preposition in ARO-0001?Beta Was this translation helpful? Give feedback.
All reactions