Hi,
I've created RFC page so that this discussion will be forgotten.
https://wiki.php.net/rfc/default_encoding
Please edit the RFC page if needed.
Regards,
--
Yasuo Ohgaki
yohg...@ohgaki.net
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/uns
Hi,
2012/8/30 Pierre Joye :
> hi!
>
> On Wed, Aug 29, 2012 at 11:19 PM, Derick Rethans 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 w
> -Original Message-
> From: Hannes Magnusson [mailto:hannes.magnus...@gmail.com]
> Sent: 29 August 2012 22:50
> To: Derick Rethans
> Cc: Nikita Popov; Jared Williams; PHP internals
> Subject: Re: [PHP-DEV] [VOTE] Generators
>
> On Wed, Aug 29, 2012 at 10:19 PM, Derick Rethans
> wrot
hi!
On Wed, Aug 29, 2012 at 11:19 PM, Derick Rethans 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.
Cheers,
--
Pierre
@pierrejoye |
On Wed, Aug 29, 2012 at 10:19 PM, Derick Rethans wrote:
> On Wed, 29 Aug 2012, Nikita Popov wrote:
>
>> On Wed, Aug 29, 2012 at 10:10 PM, Derick Rethans wrote:
>> > On Wed, 29 Aug 2012, Nikita Popov wrote:
>> >
>> >> > function &bind(array $keys, array &$row)
>> >> > {
>> >> > foreach($ke
On Wed, 29 Aug 2012, Nikita Popov wrote:
> On Wed, Aug 29, 2012 at 10:10 PM, Derick Rethans wrote:
> > On Wed, 29 Aug 2012, Nikita Popov wrote:
> >
> >> > function &bind(array $keys, array &$row)
> >> > {
> >> > foreach($keys as $key)
> >> > yield $key => $row[$key];
> >>
On Wed, 29 Aug 2012 22:10:52 +0200, Derick Rethans wrote:
On Wed, 29 Aug 2012, Nikita Popov wrote:
> function &bind(array $keys, array &$row)
> {
> foreach($keys as $key)
> yield $key => $row[$key];
> }
>
> $row = [];
> $it = bind(['a', 'b'], $row);
>
> foreach($it as
On Wed, Aug 29, 2012 at 10:10 PM, Derick Rethans wrote:
> On Wed, 29 Aug 2012, Nikita Popov wrote:
>
>> > function &bind(array $keys, array &$row)
>> > {
>> > foreach($keys as $key)
>> > yield $key => $row[$key];
>> > }
>> >
>> > $row = [];
>> > $it = bind(['a', 'b'], $row)
Hi!
>> Thanks, this is now fixed. It'll throw an exception now, saying that
>> you can't traverse an already closed generator.
>
> Nothing in the core throws an exception, why would this?!
I'd rather have it skip foreach, maybe producing a warning/notice. It'd
otherwise also be only place genera
On Wed, 29 Aug 2012, Nikita Popov wrote:
> > function &bind(array $keys, array &$row)
> > {
> > foreach($keys as $key)
> > yield $key => $row[$key];
> > }
> >
> > $row = [];
> > $it = bind(['a', 'b'], $row);
> >
> > foreach($it as $key => &$ref)
> > echo $key;
> > e
On Wed, Aug 29, 2012 at 6:21 PM, Jared Williams
wrote:
>
>
>> -Original Message-
>> From: Nikita Popov [mailto:nikita@gmail.com]
>> Sent: 25 August 2012 17:11
>> To: PHP internals
>> Subject: [PHP-DEV] [VOTE] Generators
>>
>> Hi internals!
>>
>> I think the generators RFC has been disc
> -Original Message-
> From: Nikita Popov [mailto:nikita@gmail.com]
> Sent: 25 August 2012 17:11
> To: PHP internals
> Subject: [PHP-DEV] [VOTE] Generators
>
> Hi internals!
>
> I think the generators RFC has been discussed thoroughly
> enough by now, so I opened the vote:
>
>
12 matches
Mail list logo