Daniel Martin
8/16/2006 1:12:00 PM
Pavel Smerk <smerk@fi.muni.cz> writes:
> Hello,
>
> #{subj} --- not only (False|True|Nil)Class#^, but some general one,
> like the and and or are. May be also ^^ with higher precedence.
I'll note that I find the "and" and "or" operators primarily useful
for the fact that they short-circuit (that is, the right hand side
doesn't get evaluated unless it needs to be) and because they always
return one of their arguments.
Note that neither of those properties can hold with an xor operator.
You obviously can't short-circuit, and secondly what do you return
when both arguments are true? nil or false?