> If you want clarity, why not:
>
> if($r == 0) {
> ...
> } else { // $r != 0
> }
Hmm. That's a good idea. Yeah, I was sure the else-if method wasn't faster.
I just wasn't sure if it was slower, or if that really mattered. But your
method seems fine, and I have no idea why I didn't think of that.
> Is it just as quick to do:
>
> if($r == 0) {
> } else if($r != 0) {
> }
>
> than to do:
>
> if($r == 0) {
> } else {
> }
>
> The reason I like the former method is because, in a large IF-ELSE
> block, it's clear what belongs to what IF and what's going on. But does
> this make it lag? And, if so,
2 matches
Mail list logo