Re: [VOTE] Scalar Type Hints

From: Date: Fri, 13 Feb 2015 17:15:55 +0000
Subject: Re: [VOTE] Scalar Type Hints
References: 1 2 3 4 5 6 7 8  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
On 13 Feb 2015 19:37, "Benjamin Eberlei" <[email protected]> wrote:
>
> Wait i almost forgot, it *does* have an effect on me, especially around
> callback handling:
>
> https://gist.github.com/schmittjoh/778e044deacc6f1fe516
>
> Essentially callbacks are evaluated in the mode they are called in, not in
> the one they are defined.
>

You're presenting it like this is a wrong behavior whereas it's expectable
to work like this.

One thing php will definitely lack especially after/if this RFC gets
accepted is callback signature type hints, but maybe we'll see them in 7.x


Thread (187 messages)

« previous php.internals (#82627) next »