Andrey Andreev wrote (on 14/07/2014):
Hi,

On Mon, Jul 14, 2014 at 4:12 PM, Alexey Zakhlestin <indey...@gmail.com> wrote:
Some people talk about inconsistency, which is introduced by reusing same syntax for 
"strict parameter types" and "scalar parameter casts”. There’s some truth there.
Let’s use different syntax.

This might work:

     function foo((int) $a)
     {
         var_dump($a);
     }

I would read it as declaration-level casting
I strongly support this.

What we currently have with class/array typing is a different behavior
(regardless of the details behind it), and this syntax would make that
noticeable, which is a great thing.

Cheers,
Andrey.


Please could you both read the existing messages in this thread. Yes, that has been proposed already, and several people support it.

It is not, however, what is currently proposed in this RFC, or what Andrea is asking in this post (which is a refinement of the RFC, not an alternative to it).

(Yes, I realise catching up with the whole thread might be hard work, I'm just worried we're going round in circles, as each new person to join the thread brings up all the same points that have been discussed already.)

Regards,
--
Rowan Collins
[IMSoP]

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to