On Sep 16, 2004, at 2:47 PM, Tels wrote:
-BEGIN PGP SIGNED MESSAGE-
Moin,
On Thursday 16 September 2004 23:37, Geoffrey Young wrote:
hi paul :)
I think this has come up before, but I'm not sure what the resolution
was.
I just came across (production) code that looks like this:
return 1 if
>>> return 1 if $one == $two or return 0;
>
>
> Just FYI:
>
> I always wonder why someone would write such code. IMHO this is
> unmaintainable code. I might not be an Perl expert, but I wouldn't consider
> myself a beginner either, especially not at boolean logic. And still, my
> mind canno
-BEGIN PGP SIGNED MESSAGE-
Moin,
On Thursday 16 September 2004 23:37, Geoffrey Young wrote:
> hi paul :)
>
> I think this has come up before, but I'm not sure what the resolution
> was.
>
> I just came across (production) code that looks like this:
>
> return 1 if $one == $two or return
hi paul :)
I think this has come up before, but I'm not sure what the resolution was.
I just came across (production) code that looks like this:
return 1 if $one == $two or return 0;
in the condition coverage the second return is always false, but I suppose
that it could be argued that if the