Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:92267 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 44263 invoked from network); 13 Apr 2016 20:52:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Apr 2016 20:52:41 -0000 Authentication-Results: pb1.pair.com header.from=bobwei9@hotmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=bobwei9@hotmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain hotmail.com designates 65.55.111.91 as permitted sender) X-PHP-List-Original-Sender: bobwei9@hotmail.com X-Host-Fingerprint: 65.55.111.91 blu004-omc2s16.hotmail.com Received: from [65.55.111.91] ([65.55.111.91:51948] helo=BLU004-OMC2S16.hotmail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6B/49-26321-891BE075 for ; Wed, 13 Apr 2016 16:52:40 -0400 Received: from BLU436-SMTP188 ([65.55.111.72]) by BLU004-OMC2S16.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Wed, 13 Apr 2016 13:52:38 -0700 X-TMN: [mqT9Ld3L9rLHhneqosQ8PRCG6voqV86pc4qQ6ooPFXE=] X-Originating-Email: [bobwei9@hotmail.com] Message-ID: Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 (Mac OS X Mail 9.2 \(3112\)) In-Reply-To: <570EAB0D.6080706@gmail.com> Date: Wed, 13 Apr 2016 22:52:48 +0200 CC: internals@lists.php.net Content-Transfer-Encoding: quoted-printable References: <570E99AC.3090804@fleshgrinder.com> <570EA5EB.8090501@fleshgrinder.com> <570EAB0D.6080706@gmail.com> To: Stanislav Malyshev X-Mailer: Apple Mail (2.3112) X-OriginalArrivalTime: 13 Apr 2016 20:52:36.0172 (UTC) FILETIME=[689E40C0:01D195C6] Subject: Re: [PHP-DEV] Improving PHP's type system From: bobwei9@hotmail.com (Bob Weinand) > Am 13.04.2016 um 22:24 schrieb Stanislav Malyshev = : >=20 > Hi! >=20 >> May I suggest you the following article (more of a starting point = into >> Ceylon actually) regarding this topic: >=20 > There was a time where PHP was considered a good beginner's language. > Now it seems we want to pivot and target category theory PhDs instead? = :) > --=20 > Stas Malyshev > smalyshev@gmail.com PHP has and will retain the invaluable capability of not requiring = types. If you have weak types, which you have by default, it's just about as = easy as it was the last 15 years. The only thing which changed is that not only internal functions but = also user functions can impose some limits on what is being accepted. I = could understand your complains if it were completely new and not even = internal functions ever rejected inputs based on types [or rather how = well-formed numeric strings they are]. The only thing a bit harder (requiring a little understanding of types), = is when you edit files with strict types active. But still, if that's = too much of pain for a beginner, he's free to disable them. Types are designed in a way enhancing the languages experience while = avoiding nearly every impact for people who want to ignore them. And that's great. And that's why we shall continue on improving our *optional* type = system. Thanks, Bob=