On Thu, 30 Aug 2012, Yasuo Ohgaki wrote: > 2012/8/30 Pierre Joye <pierre....@gmail.com>: > > > > On Wed, Aug 29, 2012 at 11:19 PM, Derick Rethans <der...@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?
That is a different discussion: http://thread.gmane.org/gmane.comp.php.devel/74941 Right now, language syntax does not throw exceptions, so until we have *consensus* on error handling/reporting/exceptions, the new yield keyword with generators should *not* throw exceptions either! cheers, Derick -- http://derickrethans.nl | http://xdebug.org Like Xdebug? Consider a donation: http://xdebug.org/donate.php twitter: @derickr and @xdebug Posted with an email client that doesn't mangle email: alpine -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php