Re: Short Circuiting

new topic     » topic index » view thread      » older message » newer message

On Wed, 24 Jun 1998 01:03:52 -0700 Hawke <mdeland at NWINFO.NET> writes:
>Ralf Nieuwenhuijsen wrote:
>> if this then
>>     if that () then
>>         ..
>>     end if
>> end if
>>
>> In other words, short-circuiting is a very clumbsy things and
>results in
>> very weird errors and it is very inconsistent.
>> The that () function should always be called.
>> Please, don't implent short-circuiting.
>
>
>ummmm...no.
>up till now i agreed with all of your arguments and examples ralf.
>short-circuiting(SC) is a necessary tool in programming. often
>implemented
>by a programmer without them realizing it.
>SC is a often a major optimization to coding... classes in boolean
>logic
>teach 'tricks' to determining what cases occur most often and what
>cases
>can be completely, utterly avoided from conditional checking.
>this is the case here. the that() function should NOT always be
>called.
>if this is false, there is no need for calling that(),

Actually, in Ralf's code fragment there, that() was meant to be called.
Maybe it updates global variables (that need to be updated each time),
maybe it is an input function, maybe it draws stuff to the screen.

Although it may not be the best of coding to do that...


_____________________________________________________________________
You don't need to buy Internet access to use free Internet e-mail.
Get completely free e-mail from Juno at http://www.juno.com
Or call Juno at (800) 654-JUNO [654-5866]

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu