You are here: Re: if an multiple statements « PHP Programming Language « IT news, forums, messages
Re: if an multiple statements

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация