Re: [RFC Discuss] Generator Delegation

From: Date: Mon, 02 Mar 2015 19:05:19 +0000
Subject: Re: [RFC Discuss] Generator Delegation
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
I prefer yield from, because it yields that value from the generator. Yield
use doesn't make any sense to me if I read those words.

Additionally, it's already used by another language.

Regards, Niklas

Daniel Lowrey <[email protected]> schrieb am Mo., 02.03.2015, 17:13:

> From initial discussions it seems prudent to modify the Generator
> Delegation RFC to use either of:
>
>   - yield from <expr>
>   - yield use <expr>
>
> The yield from form would add a single T_YIELD_FROM token (as opposed to
> a new "from" reserved word). The yield use form would reuse existing
> keywords. I'd like to get feedback from people on preferences between these
> two options before modifying the RFC. If general consensus isn't reached
> this can be a voting option, but I prefer a traditional yes/no vote
> to ménage à trois.
>
> Thanks again for your participation.
>


Thread (21 messages)

« previous php.internals (#84178) next »