Re: [RFC][Vote] Typed Properties
| From: | Larry Garfield | Date: | Fri, 10 Jun 2016 21:05:38 +0000 |
| Subject: | Re: [RFC][Vote] Typed Properties | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-93888@lists.php.net to get a copy of this message | ||
On 06/10/2016 03:01 PM, Lester Caine wrote:
On 10/06/16 20:51, Larry Garfield wrote:https://seld.be/notes/php-versions-stats-2016-1-edition The code being written is veering heavily toward newer versions, and anecdotally most of the code I see is classed with typed parameters. (Yes, anecdotes are not data, and I acknowledged a likely bias earlier, but I'm not sure how to generate actually objective data on this front.) That is arguably a more reliable measure of what developers are doing than the W3Techs stats, which are based on what servers are running. (A useful but different metric.) --Larry GarfieldOn 06/10/2016 02:14 PM, Lester Caine wrote:The same applies to your suggestion that user-land is actively following you. Getting systems off PHP5.2/3 gets more an more difficult given all the extra 'little tweaks' that are needed and we still have 40% of users that need help getting just over to 5.4 let alone up to PHP7. Currently more people are still using PHP4 than have switched to PHP7 ... so where is the strong support for typed code? (https://w3techs.com/technologies/details/pl-php/all/all)On 10/06/16 17:57, Rowan Collins wrote:... I am a strong typing proponent (that is a strong proponent of explicit typing), and have never once used HHVM. Your claim, that type-using people can just leave for HHVM, is both nonsensical and untrue.For the record, I'm not entirely sure which way I want the language to go, but I think it's a decision that needs to be made, and soon.Seconded ... even something like strict mode should be 'removable' to provide a smaller faster 'classic' PHP even if it does mean there are two builds. But we already HAVE two builds ... people who want strongly typed and pre-compiled PHP simply use HHVM. There is no need to drag PHP down the same road map? Each has it's own strengths.