You are here: Re: Returning NULL vs. returning FALSE « PHP Programming Language « IT news, forums, messages
Re: Returning NULL vs. returning FALSE

Posted by Thomas Mlynarczyk on 11/01/94 11:32

Also sprach Umberto Salsi:

> "Thomas Mlynarczyk" <blue_elephant55@hotmail.com> wrote:
>> What I'm looking for is the best suited general return value for
>> cases where an operation could not be successfully completed as
>> expected and the function is not able to fix the error by itself and
>> the error is of a nature where "drastic measures" like throwing an
>> error or an exception would be inappropriate.

> You might return the handle to an object created specifically to
> indicate the error condition:
[code example]

Thanks for this interesting suggestion. That would indeed solve all
ambiguity problems.

Greetings,
Thomas

 

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

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