Re: [VOTE][RFC] Scalar Type Hinting with Cast

From: Date: Sun, 14 Sep 2014 09:12:22 +0000
Subject: Re: [VOTE][RFC] Scalar Type Hinting with Cast
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-77174@lists.php.net to get a copy of this message
hi Andrea, On Sun, Sep 14, 2014 at 1:30 AM, Andrea Faulds <ajf@ajf.me> 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

« previous php.internals (#77174) next »