Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:92272 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 57589 invoked from network); 13 Apr 2016 23:43:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Apr 2016 23:43:10 -0000 Authentication-Results: pb1.pair.com header.from=zeev@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=zeev@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 65.55.169.123 as permitted sender) X-PHP-List-Original-Sender: zeev@zend.com X-Host-Fingerprint: 65.55.169.123 mail-bl2on0123.outbound.protection.outlook.com Received: from [65.55.169.123] ([65.55.169.123:55760] helo=na01-bl2-obe.outbound.protection.outlook.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CF/5B-26321-C89DE075 for ; Wed, 13 Apr 2016 19:43:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=RWSoftware.onmicrosoft.com; s=selector1-zend-com; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=1uv18LrTFbYDdliCeEZkplIrEY01OV8Vq2S43jF791c=; b=MdIEtlM85LjIP4Kihg6EoXKtfn6AqedMZfJ/uHLAzLz6B3eGQHrX5OF6sxJP5ed64k9vlaM7Y7+UnZ1fN0VPMkiaScaG9Mfanb+hYFuiAInYQZETJlYijxn1YmTMPWGVddNUee8zg/qrbHBLlVcLcU3Ejy2WVFEzCVs3e0KDEwk= Received: from BY2PR02MB298.namprd02.prod.outlook.com (10.141.140.21) by BY2PR02MB299.namprd02.prod.outlook.com (10.141.140.22) with Microsoft SMTP Server (TLS) id 15.1.447.15; Wed, 13 Apr 2016 23:43:03 +0000 Received: from BY2PR02MB298.namprd02.prod.outlook.com ([10.141.140.21]) by BY2PR02MB298.namprd02.prod.outlook.com ([10.141.140.21]) with mapi id 15.01.0447.029; Wed, 13 Apr 2016 23:43:02 +0000 To: Larry Garfield CC: "internals@lists.php.net" Thread-Topic: [PHP-DEV] Re: Improving PHP's type system Thread-Index: AQHRlaUHEc+doe0x5E+u9VwQHuu4UJ+IRQcAgAANKICAAAFxgIAABh6AgAANpACAACnEHw== Date: Wed, 13 Apr 2016 23:43:02 +0000 Message-ID: <5B147E88-CC0A-4CBC-A49D-C7FE3BF557C0@zend.com> References: <570E99AC.3090804@fleshgrinder.com> <570EA5EB.8090501@fleshgrinder.com> <570EAB0D.6080706@gmail.com>,<570EB67E.8010908@garfieldtech.com> In-Reply-To: <570EB67E.8010908@garfieldtech.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: garfieldtech.com; dkim=none (message not signed) header.d=none;garfieldtech.com; dmarc=none action=none header.from=zend.com; x-originating-ip: [2.53.26.137] x-ms-office365-filtering-correlation-id: f1f194f2-ee0e-4011-f31f-08d363f55ab3 x-microsoft-exchange-diagnostics: 1;BY2PR02MB299;5:2RSW3WUNCnjefMwrPjKzRPWDvsc52QzWSJ2oswQEmESG9/nm3ewVMXL4ugeungRFM0irqV/ijdVD8DCxJArDuxzs3PzKSkvzOwxiFT4eMv1DbGrktlSihyDkOTE8bcHN4DBaUDroC4yLqv3xqi9pbQ==;24:+mP89VHza1QqIAa9Ytn2L+AS1i4zZdqxFtSYhoguRs/i6yKm/WSEK8KLyPm1gk4e9yiOMIC3LF8fMmKvWy8CfMQ3WQSBeDEZIY5ysExyf28= x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY2PR02MB299; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001);SRVR:BY2PR02MB299;BCL:0;PCL:0;RULEID:;SRVR:BY2PR02MB299; x-forefront-prvs: 0911D5CE78 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(377454003)(24454002)(3660700001)(82746002)(50986999)(76176999)(586003)(2950100001)(77096005)(86362001)(122556002)(33656002)(54356999)(66066001)(19580405001)(5008740100001)(110136002)(189998001)(106116001)(1220700001)(10400500002)(5002640100001)(36756003)(81166005)(2906002)(83716003)(92566002)(1096002)(3846002)(5004730100002)(4326007)(87936001)(19580395003)(2900100001)(93886004)(102836003)(6116002)(3280700002)(104396002);DIR:OUT;SFP:1102;SCL:1;SRVR:BY2PR02MB299;H:BY2PR02MB298.namprd02.prod.outlook.com;FPR:;SPF:None;MLV:sfv;LANG:en; spamdiagnosticoutput: 1:23 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="windows-1255" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: zend.com X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Apr 2016 23:43:02.7220 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 32210298-c08b-4829-8097-6b12c025a892 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR02MB299 Subject: Re: [PHP-DEV] Re: Improving PHP's type system From: zeev@zend.com (Zeev Suraski) > On 14 =E1=E0=F4=F8=D7 2016, at 7:14, Larry Garfield wrote: >=20 >> On 4/13/16 3:24 PM, Stanislav Malyshev wrote: >> Hi! >>=20 >>> May I suggest you the following article (more of a starting point into >>> Ceylon actually) regarding this topic: >> 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 > A language that is usable primarily by beginners will only be useful for = beginners. Non-beginners will shun it, or simply grow out of it and leave. >=20 > A language that is usable only by PhDs will be useful only for PhDs. Beg= inners won't be able to comprehend it. >=20 > A language that is usable by both beginners and PhDs, and can scale a use= r from beginner to PhD within the same language, will be used by both. >=20 > Doing that is really hard. And really awesome. And the direction PHP has = been trending in recent years is in that direction. Which is pretty danged= awesome. :-) I would argue that PHP was already doing that almost since inception. I th= ink we have ample evidence that we've been seeing a lot of different types = of usage - both beginners' and ultra advanced going on in PHP for decades. I would also argue that in recent years, the trending direction has been fo= cusing on the "PhDs", while neglecting the simplicity seekers (which I woul= dn't necessarily call beginners). Making PHP more and more about being lik= e yet-another-language, as opposed to one that tries to come up with creati= ve, simplified ways of solving problems. Last, I'd argue that a language that tries to be everything for everybody e= nds up being the "everything's and the kitchen sink", rather than something= s that is truly suitable for everyone. We also seemed to have dumped some of our fundamental working assumptions -= that have made PHP extremely successful to begin with: - Emphasis on simplicity - Adding optional features makes the language more complex regardless of wh= ether everyone uses them or not It does seem as if we're trying to replicate other languages, relentlessly = trying to "fix" PHP, which has been and still is one of the most successful= languages out there - typically a lot more so than the languages we're try= ing to replicate. Zeev