Originally posted by Philippe Maquet:
Hi Seid,
"Do you think a customer could ask for a room in New York OR in a Hilton hotel ?". Obviously, the answer is no. Now if you try "OR" with any other criteria combination you get similar dumb requests :
Imagine a customer asking to sleep :
in San Francisco OR in a smoking room
in a Hilton OR on December 15
...
Would be stupid, right ?
Best,
Phil.
[ December 07, 2003: Message edited by: Philippe Maquet ]
Hi Phil,
Very funny use of OR.
[I'm certain I've seen a face rolling and laughing, but I don't see it under "Instant Graemlins."]
There is little doubt that Sun's use of the phrase
"items where the xField and/or yField fields"
means items where the
1. xField, or the
2. yField, or
3. Both
However, it's common incorrect usage for some software developers to mean
and/or as
means items where the
1. xfield, or the
2. yField, or
3. both, or
4. xfield or yField
Granted, Sun most likely does not mean this, and so it is highly unlikely
anyone would receive a jot of demerit for not implementing case 4.
However, I was thinking could here possibly be any use for the OR
as an option to the user? Certainly, some of your examples are hillarious,
but what about when OR is applied between a hotel name and a location thus:
Jim and Samantha Jones are about to go on a spur-of-the-notice, short
vacation. Samantha is so enamored with "Smith's B&B Inc." that she has
warmingly suggested that any Smith's B&B anywhere in the world would
be a great place to vacation. Jim, on the other hand, desires to take a
vacation in Oz County (and he doesn't care about which hotel he stays
at).
Instead of Jim making two different searches, one on Oz County, and one
on Smith's B&B Inc. anywhere in the world, he makes one search:
"Smith's B&B Inc." OR "Oz County".
Is the above search plausable? Or outright rediculous? Obviously I don't
want to consider putting in the OR option if the grader will make be blush
In short, if each search is plausable, then OR'ing the two searches together
to get the output on one page is plausable?
Again, I'm not implying that anyone will lose points for using OR; but, I'm
checking that using OR is not too far out.
Thanks,
Javini Javono
[ January 20, 2004: Message edited by: Javini Javono ]