realbasic-nug
[Top] [All Lists]

Re: Coding Conventions/Style Tips Questions

To: REALbasic Network Users Group <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Coding Conventions/Style Tips Questions
From: "Joseph J. Strout" <joe at realsoftware dot com>
Date: Fri, 4 Jan 2002 12:10:11 -0800
At 2:01 PM -0600 1/4/02, Des Courtney wrote:

In all good programming languages, any expressions after a false "and"
operator, aren't tested. And also, any expressions after a true "or"
operator, aren't tested.

In my personal experience, I've found that, unless the language
  officially has syntax for "short-circuit" boolean expressions,
  counting on this behavior makes the code unreliable and harder
  to maintain.

We officially have short-circuit evaluation of Boolean expressions.

Cheers,
- Joe

--
,------------------------------------------------------------------.
|    Joseph J. Strout           REAL Software, Inc.                |
|    joe at realsoftware dot com       http://www.realsoftware.com        |
`------------------------------------------------------------------'


<Prev in Thread] Current Thread [Next in Thread>