←back to thread

The Grammar According to West

(dwest.web.illinois.edu)
65 points surprisetalk | 1 comments | | HN request time: 0.208s | source
Show context
layer8 ◴[] No.45077545[source]
> Note the difference between "where" and "such that". "Where" is used when the preceding notation is being defined; "such that" is used when it is already defined and its value is being restricted.

I found this interesting. SQL and Swift use “where” for restrictions. Any other examples in programming languages?

If a programming language wanted to use a keyword for restrictions that isn’t “where” (and still is a single word, hence “such that” doesn’t qualify), what word would be suitable instead? “With”? “Having”?

replies(3): >>45077717 #>>45078657 #>>45089150 #
1. hallole ◴[] No.45077717[source]
"Given"?

I don't know SQL, but going solely off Google Images, that'd read like:

SELECT X GIVEN X > 5