|
Posted by jodleren on 01/08/08 07:42
On Jan 7, 6:54 pm, "Steve" <no....@example.com> wrote:
> "Michael Fesser" <neti...@gmx.de> wrote in message
>
> > PHP uses lazy evaluation. As soon as the result is known, the evaluation
> > stops. Because of this behaviour you can write things like
> most languages do it this way. of those that i've used, vb was the only one
> that continued to blindly evaluate conditions. it wasn't until vb.net that
> the AndAlso and OrElse short-circuit constructs were added - 'short-circuit'
> being even more descriptive than 'lazy' or 'pragmatic'.
Well I would think the same way, but as you wrote, once tried VB one
knows, that one has to be careful...
There are really a lot of languages and scripts out there, so better
safe than not.
As for debugging/reading of code - this can really minimise code, and
by that give a better overview. Some may think it is a bit harder to
read, but I rather have a few lines of code than 3 screens of it.
Thanks, all
Navigation:
[Reply to this message]
|