That's my thought on it, but I have to think of the others that will come
behind me to work on this later.  As we know well enough, not everyone pays
attention and knows that the right-most method call determines the return
type.  I just wanted to know what everyone else thought of it before I went
through and used the first method as a convention, only to have someone here
come up with a good point on using the second method.

You pretty much wrote what I was thinking...SCARY!!

...Glenn

On Mon, Jan 5, 2009 at 3:01 PM, Joe Enos <[email protected]> wrote:

>
> I've always done it using option #1 - never really gave it much
> thought, but it does bring up a good point - I do tend to use
> parentheses in situations with multiple booleans when they're not
> necessarily required, to make things easier to read.
>
> In this case, I'd defend #1 by saying that the value being assigned is
> always whatever is at the far right - in this case, ReadCString(),
> regardless of what it's reading - If you want to know what you're
> reading from, you'd read backwards (right to left), in which case the
> parentheses don't really make it any clearer.
>
> I guess my opinion is that it depends on your situation - in this
> case, I'd skip the parenthesis, but if I was doing this in a big chain
> of logic, maybe use them at that time...
>

Reply via email to