Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:107716 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 11686 invoked from network); 28 Oct 2019 05:32:46 -0000 Received: from unknown (HELO localhost.localdomain) (76.75.200.58) by pb1.pair.com with SMTP; 28 Oct 2019 05:32:46 -0000 To: internals@lists.php.net References: <9d3f9895-5ab6-1d75-4eb2-0ba93f13a8fe@gmail.com> <9D2698F0-49A4-4EA0-BEEE-552D28BE995A@newclarity.net> Date: Mon, 28 Oct 2019 03:20:04 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <9D2698F0-49A4-4EA0-BEEE-552D28BE995A@newclarity.net> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Posted-By: 94.8.59.3 Subject: Re: [PHP-DEV] Optional pre-compiler for PHP8? From: marandall@php.net (Mark Randall) Message-ID: 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