Re: Short Circuiting

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

>I was wondering. What about short circuiting would confuse or otherwise
>mess up your code/logic? The condition would fail anyway.

--


if this and that () then
    ..
end if
--

If this was false then that () wouldn't even be called, however in those
cases where this is true then that () is called. Short-circuited it says:

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.

Ralf N.
nieuwen at xs4all.nl

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

Search



Quick Links

User menu

Not signed in.

Misc Menu