On Apr 15, 2004, at 5:21 PM, Marcus Boerger wrote:


Hello Christian,

Thursday, April 15, 2004, 1:06:20 PM, you wrote:

[EMAIL PROTECTED] wrote:
"modern dynamic" languages in that context, as for instance in Python
there is no error handling but by using exceptions).

Sorry but that's simply wrong. Python methods can return false or null
as much as PHP methods can. It might be a lot more _common_ to use
exceptions but there are options. And the exception part is the one I
don't like about Python anyway ;-)

Still a ctor cannot return a value.

Supporting this, if you look through the Python standard library you will see that exceptions are the employed method for handling constructor failures.


George

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to