Yes, it is expensive.
Andi
At 08:57 PM 9/7/2003 -0400, Juan C. Rivera wrote:
You should not use exceptions for program logic. Exceptions are use to
handle exceptional cases and the overhead of handling an exception may
be quite expensive. At least on other languages.
So, what is the overhead of t
You should not use exceptions for program logic. Exceptions are use to
handle exceptional cases and the overhead of handling an exception may
be quite expensive. At least on other languages.
So, what is the overhead of throwing exceptions in PHP? Is it as
expensive as in .Net or C++?
-Origina
That's not the way exceptions work in any language I know.
On Tuesday, July 8, 2003, at 01:29 PM, Greg Beaver wrote:
Hi,
In experimenting with exceptions, I notice that throw() always jumps
to the first catch() (as expected), and there is no way to return to
the line after the throw(). Are w
> In experimenting with exceptions, I notice that throw() always jumps to
> the first catch() (as expected), and there is no way to return to the
> line after the throw().
That is precisely how exceptions are supposed to work.
> Are we forced to use trigger_error() or some
> custom function for