Re: [PHP-DEV] [VOTE][RFC] Scalar Type Hinting with Cast

[email protected] (Pierre Joye)
Newsgroups php.internals
Message-ID <CAEZPtU6D=CaQYyvAtd9BVZ5SjRbm--erju9APiLqKoePY9JQDQ@mail.gmail.com>
hi Andrea,

On Sun, Sep 14, 2014 at 1:30 AM, Andrea Faulds <[email protected]> wrote:
> Good evening,
>
> I’ve given up on my plan B, so I’m putting this RFC, finally, to a vote.
>
> I would urge you to vote in favour. It is not going to please everyone, it is after all a compromise proposal. However, I have tried my best to strike a balance between complete weak typing and strict typing. If this passes, we will finally have userland type specifiers for scalar types. It’s not perfect, but I’d argue it’s far better than nothing.
>
> Voting starts today, 2014-09-14, and ends in a week’s time, 2014-09-21.

Great job!

It brings also some clarity and sense to type casting, at least for this area.

I do not see much of a problem with the small delta with existing
casting. I am not sure about the recoverable error, especially when
old codes will use new implementations, it may have a bad impact
depending on how the errors are a managed in a given library. But
there is no BC per se in existing codes due to this.

All in all, I will vote +1. No matter what we think what PHP should
do, remain or be, this addition has been a long due request from the
waste majority of our users. Let see what they think about it.
Hopefully some lead devs of the major tools/libs/frameworks will post
their views here.

Cheers.
-- 
Pierre

@pierrejoye | http://www.libgd.org
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.