On Aug 21, 4:56 pm, "Michael Geary" <[EMAIL PROTECTED]> wrote:

>> We are still talking about short circuits?
>
> I think so. :-)

Right. I was begining to mix a few different ideas. :-)

My initial message first questioned the idea where paul parenthically
stated the & operator may be used for his idiom.   In general, I never
think or program it as having short circuiting behavior.  I never
expect it to behave as such as well   In addition, from an application
standpoint,  there is a difference too dependent on you wish to to use
the final condition result.  Like I showed in my initial message,
whether it was & or |,  all functions were called, however, the final
result  is different.  There was no short circuit behavior for the &
and | bitwise operators and I don't expect to be.

> What language are you talking about? "if( a & b )" is perfectly good,
> portable code in either C (assuming reasonable types for a and b) or
> JavaScript.

and that is one of the kickers, 'reasonable types" and I will add
expected types.

It serves no justice to try to consolidates 30 years of interpreters,
pcode compilers and product development practice in one Google group
message. :-)

All I am saying is that to avoid such engineering concerns, it is good
practice to use bit comparision method..  The difference is coding
with 100% confidence vs 99% confidence in the expected assertions
being made.

Off the top of my hand, mike, a design problem may begins at your
external interface points where there might type casting being done
for you.  Yes, data types are important.

> No, but there is one standard they are all using:
>
> http://www.ecma-international.org/publications/standards/Ecma-262.htm

Yes. I'm aware of it.   We got an exploration project scheduled to see
if we can use JavaScript as our server embedded language.

Thanks Mike

--
HLS

Reply via email to