From: Austin Ziegler Date: 2002-11-21T23:53:31+09:00 Subject: Re: difference between "and" and "&&" On Thu, 21 Nov 2002 20:45:30 +0900, Gavin Sinclair wrote: > result = value && value.size > param = param || default_value > action() and consequent_action() > action() or alternative_action() > > Without *thinking* about precedence, the code above just reads > nicely: the subtleties of the intended high-level intention are > communicated very well through the symbols used. It also works very well if you do: param = param || default_value and handle(param) This way, handle(param) is only called if the result of param || default_value is true. -austin -- Austin Ziegler, austin@halostatue.ca on 2002.11.21 at 09.51.47