On Mon, 2008-11-24 at 16:34 +0100, Jenda Krynicky wrote:
> Is there any reason you want to do that? Other than that some 
> braindead languages work that way? Complete evaluation of conditions 
> is one of the most annoying features of any language.
> 
> If rstBlah.EOF Then
>  bla bla bla
> ElseIf rstBlah.Field("foo").Value = sumfin Then
>  the very same bla bla bla
> Else
>  ...
> 
> anyone?
> 
> If you want to evaluate both and then check their results, do 
> evaluate them both and then do check their results. Fullstop. There 
> is no way to turn on complete condition evaluation and there should 
> not be.

The subroutines involve must have a side-effect such as writing to file
that must be done.  This is just bad design.  But it's hard to convince
management that fixing the symptoms just makes the next fix harder to
do.  Fixing the root of the problem is best but often you are not given
enough time.  So you write a kludge.  And every kludge you add is just
one step closer to a total rewrite.


-- 
Just my 0.00000002 million dollars worth,
  Shawn

The map is not the territory,
the dossier is not the person,
the model is not reality,
and the universe is indifferent to your beliefs.


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to