Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:62635 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 64204 invoked from network); 1 Sep 2012 18:14:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Sep 2012 18:14:09 -0000 Authentication-Results: pb1.pair.com smtp.mail=glopes@nebm.ist.utl.pt; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=glopes@nebm.ist.utl.pt; sender-id=unknown Received-SPF: error (pb1.pair.com: domain nebm.ist.utl.pt from 193.136.128.22 cause and error) X-PHP-List-Original-Sender: glopes@nebm.ist.utl.pt X-Host-Fingerprint: 193.136.128.22 smtp2.ist.utl.pt Linux 2.6 Received: from [193.136.128.22] ([193.136.128.22:50790] helo=smtp2.ist.utl.pt) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 43/38-17065-E6052405 for ; Sat, 01 Sep 2012 14:14:07 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp2.ist.utl.pt (Postfix) with ESMTP id A92C370003CE; Sat, 1 Sep 2012 19:14:03 +0100 (WEST) X-Virus-Scanned: by amavisd-new-2.6.4 (20090625) (Debian) at ist.utl.pt Received: from smtp2.ist.utl.pt ([127.0.0.1]) by localhost (smtp2.ist.utl.pt [127.0.0.1]) (amavisd-new, port 10025) with LMTP id zEhVlayb1Ooy; Sat, 1 Sep 2012 19:14:03 +0100 (WEST) Received: from mail2.ist.utl.pt (mail.ist.utl.pt [IPv6:2001:690:2100:1::8]) by smtp2.ist.utl.pt (Postfix) with ESMTP id 38F6A700044A; Sat, 1 Sep 2012 19:14:03 +0100 (WEST) Received: from damnation.nl.lo.geleia.net (unknown [IPv6:2001:470:94a2:4:21d:baff:feee:cc0b]) (Authenticated sender: ist155741) by mail2.ist.utl.pt (Postfix) with ESMTPSA id 5BB8B20089A3; Sat, 1 Sep 2012 19:14:02 +0100 (WEST) Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: "PHP internals" , "Nikita Popov" References: Date: Sat, 01 Sep 2012 20:14:17 +0200 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Organization: =?utf-8?Q?N=C3=BAcleo_de_Eng=2E_Biom=C3=A9di?= =?utf-8?Q?ca_do_I=2ES=2ET=2E?= Message-ID: In-Reply-To: User-Agent: Opera Mail/12.01 (Linux) Subject: Re: [PHP-DEV] Re: [VOTE] Generators From: glopes@nebm.ist.utl.pt ("Gustavo Lopes") On Sat, 01 Sep 2012 18:02:40 +0200, Nikita Popov wrote: > The vote ended with 24 in favor and one against. As such the RFC is > accepted. > I've merged Nikita's branch in 53351d0. As to the "exception objection": the behavior of throwing exceptions on illegal state was written on the RFC when voting opened, and the RFC was accepted almost unanimously. As the proposal was accepted as such, I saw no valid reason not to merge. In fact, changing the proposal after it was voted on would be much more objectionable. Derick argues this is some sort of tacit change of the design rules of the language, with the objection against exception throwing relying also on the user's ignorance that generators return a Generator object (though he also chose not to vote against the proposal). I don't find his arguments persuasive, but, in any case, the issue can be adjudicated by the community through an RFC that establishes either a clear general policy for exception throwing or handles just this particular case. -- Gustavo Lopes