Re: Continued try blocks

From: Date: Tue, 07 May 2013 17:39:57 +0000
Subject: Re: Continued try blocks
References: 1 2 3 4 5 6 7 8  Groups: php.internals 
Request: Send a blank email to internals+get-67340@lists.php.net to get a copy of this message
Hi! > The feature exists in > Python: > http://stackoverflow.com/questions/574730/python-how-to-ignore-an-exception-and-proceed, I don't think it does what is proposed - except/pass just catches an exception and does nothing, it does not return in the place where exception was thrown down the stack and continues execution. Looks like Ruby is the same thing. In PHP< you'd just do: try { dostuff(); } catch(Exception $e) {} but that's not what was proposed. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227

« previous php.internals (#67340) next »