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

From: Date: Sun, 14 Sep 2014 20:14:04 +0000
Subject: Re: [VOTE][RFC] Scalar Type Hinting with Cast
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-77197@lists.php.net to get a copy of this message
Hello Andrea, I find the rfc a bit difficult to understand: e.g. is_float('1') gives false, but foo('1') with function foo(float $a){} is ok. Regards, Thomas Andrea Faulds wrote on 14.09.2014 01:30: > 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. > > Thanks! > > https://wiki.php.net/rfc/scalar_type_hinting_with_cast#vote > -- > Andrea Faulds > http://ajf.me/ > > > > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.internals (#77197) next »