Re: [VOTE] Generators

From: Date: Sun, 26 Aug 2012 20:25:41 +0000
Subject: Re: [VOTE] Generators
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-62531@lists.php.net to get a copy of this message
Hi! > I think the generators RFC has been discussed thoroughly enough by > now, so I opened the vote: > > https://wiki.php.net/rfc/generators#vote I think it's fine but I'd still like to put forward a proposal to reconsider the requirement for parentheses in syntax like this: $data = (yield $value); I don't see how it's particularly useful in this case, or in any case except for the array(), in which case one would want to always use parens to make the code clear, but I don't think we need to make it mandated everywhere just to cover this one (and pretty rare) case. Is there a technical reason to do that? -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227

« previous php.internals (#62531) next »