Re: [VOTE] Generators

From: Date: Wed, 29 Aug 2012 23:07:50 +0000
Subject: Re: [VOTE] Generators
References: 1 2 3 4 5 6 7  Groups: php.internals 
Request: Send a blank email to internals+get-62591@lists.php.net to get a copy of this message
Hi, 2012/8/30 Pierre Joye <pierre.php@gmail.com>: > hi! > > On Wed, Aug 29, 2012 at 11:19 PM, Derick Rethans <derick@php.net> wrote: > >> "ext/spl" - SPL is not *core* language. The generators are. Don't throw >> exceptions from core features! > > I would not have a problem with exceptions here. It is much cleaner > than yet another warning. But we have errorException for errors since PHP 5.1. http://jp.php.net/errorException Are there any technical reasons not to have exception? If there are, we should use error. If not, more arguments. BTW, I would like to change errorException behavior. It removes output buffer and make it less useful for error handling. I'll post new thread for it when I have time. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net

« previous php.internals (#62591) next »