Re: Optional pre-compiler for PHP8?
| From: | Mark Randall | Date: | Mon, 28 Oct 2019 03:20:04 +0000 |
| Subject: | Re: Optional pre-compiler for PHP8? | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-107716@lists.php.net to get a copy of this message | ||
On 27/10/2019 23:56, Mike Schinkel wrote:
2. Allowing PHP to continue to meet the needs of new/less-skilled programmers and/or people who want a more productive language for smaller projects that do not need or want all the enterprisey type-safe features.This concept of type safety being an enterprise feature needs to die. Types are a way of preventing your program from getting into states that you don't expect it to be in, so you don't have to worry about handling them in the first place. Scalars, and strict types would have saved me _so much_ time when I started trying to learn PHP. Here's a video I stumbled upon recently that helps explain why types help make coding easier, by reducing the number of possible states an application can be in: https://youtu.be/q1Yi-WM7XqQ?t=656 -- Mark Randall