Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:92275 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 79351 invoked from network); 14 Apr 2016 06:14:17 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Apr 2016 06:14:17 -0000 Authentication-Results: pb1.pair.com smtp.mail=peter.e.lind@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=peter.e.lind@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.44 as permitted sender) X-PHP-List-Original-Sender: peter.e.lind@gmail.com X-Host-Fingerprint: 74.125.82.44 mail-wm0-f44.google.com Received: from [74.125.82.44] ([74.125.82.44:36143] helo=mail-wm0-f44.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 23/20-12455-8353F075 for ; Thu, 14 Apr 2016 02:14:16 -0400 Received: by mail-wm0-f44.google.com with SMTP id v188so204862320wme.1 for ; Wed, 13 Apr 2016 23:14:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=qrhaMa+lmjKgnrPJMjvml9yG9BvnAf33WgTd/Zc8dRY=; b=SO5AAxHpm5vpPqq8xy48TkdarHjDOIN6jaQGmOSh+henGUfhBVqMdRosxlqXS+tu9v BeXYnGy0Asq7ZK4td58XFklfXEJCVG9Hx5KuKhdmy+wU740aqjwA8nsu5wLBdCrglWds WLzjRiLlj/pMiC8IwAtziV6e3GRk+AVuByAcCw7I4BIetNZep967qEbE9+oX7wmZlYib j2IsIijdKBw9wKk288MzIXlzbHE1U8fC96AFMc2DUrLpXkYR1PxZ/BqjfB1gxCGZhoET 1SjgKaXu8cWlpxLE5CSVXh4WmCtIy/G4KArqgTvkf5qlnDA8nMQ0amtxtTih5lrD4jZO sD+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=qrhaMa+lmjKgnrPJMjvml9yG9BvnAf33WgTd/Zc8dRY=; b=KT9XS8YKlHcZ9VhwL9amjR4FE+QkPX81t+nHZeluBgDyFl67xRx9+IF1230i3bW0ps cicK6YkmdRg5Pf9jkPc/jztIZcxnHdksk7G8KP9RZCNxdQaxkgbgKFy49sSbi3gUss74 sE6SdNHsHwlQ5Bvw++QGdznFe7UgeOAUWsKk6lugzreslnqXMrpN5yEQbKLPaeepw2Nb bzjUUbYN8iNM8IH5gkhrAwzVVTohzA4jcNFSoXl3ToWV391QS78HZHYssR+Sj0w5dmtQ T3zjXU3EV2k4r/liF1E/+JF5VI+XmripmHyIh1yIP23zYY8uAaDGP8aZJsbzdoxmIY4a /YPA== X-Gm-Message-State: AOPr4FVORfaQQlQ9SEEsyPSZOGVQEk2cGxte8yISQvOTtOMFHxCQ5jne2eC3VA+Hw+i/89FHNzYCn7Xt373cew== X-Received: by 10.194.9.34 with SMTP id w2mr13651556wja.170.1460614453545; Wed, 13 Apr 2016 23:14:13 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.166.4 with HTTP; Wed, 13 Apr 2016 23:13:54 -0700 (PDT) In-Reply-To: <5B147E88-CC0A-4CBC-A49D-C7FE3BF557C0@zend.com> References: <570E99AC.3090804@fleshgrinder.com> <570EA5EB.8090501@fleshgrinder.com> <570EAB0D.6080706@gmail.com> <570EB67E.8010908@garfieldtech.com> <5B147E88-CC0A-4CBC-A49D-C7FE3BF557C0@zend.com> Date: Thu, 14 Apr 2016 08:13:54 +0200 Message-ID: To: Zeev Suraski Cc: Larry Garfield , "internals@lists.php.net" Content-Type: multipart/alternative; boundary=047d7b5d83fda8527c05306bcd97 Subject: Re: [PHP-DEV] Re: Improving PHP's type system From: peter.e.lind@gmail.com (Peter Lind) --047d7b5d83fda8527c05306bcd97 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 14 April 2016 at 01:43, Zeev Suraski wrote: > > > On 14 =D7=91=D7=90=D7=A4=D7=A8=D7=B3 2016, at 7:14, Larry Garfield > wrote: > > > >> On 4/13/16 3:24 PM, Stanislav Malyshev wrote: > >> Hi! > >> > >>> May I suggest you the following article (more of a starting point int= o > >>> 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? > :) > > > > A language that is usable primarily by beginners will only be useful fo= r > beginners. Non-beginners will shun it, or simply grow out of it and leav= e. > > > > A language that is usable only by PhDs will be useful only for PhDs. > Beginners won't be able to comprehend it. > > > > A language that is usable by both beginners and PhDs, and can scale a > user from beginner to PhD within the same language, will be used by both. > > > > Doing that is really hard. And really awesome. And the direction PHP ha= s > been trending in recent years is in that direction. Which is pretty dang= ed > awesome. :-) > > I would argue that PHP was already doing that almost since inception. I > think 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 > focusing on the "PhDs", while neglecting the simplicity seekers (which I > wouldn't necessarily call beginners). Making PHP more and more about bei= ng > like yet-another-language, as opposed to one that tries to come up with > creative, simplified ways of solving problems. > Last, I'd argue that a language that tries to be everything for everybody > ends up being the "everything's and the kitchen sink", rather than > somethings 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 > whether everyone uses them or not > > Really? The recent number of RFCs focusing on making some of PHPs annoyances go away have passed you by? They seem to fall squarely within "emphasis on simplicity" as far as I can tell. Also, PHP is known as the language with a million ways to do things, where some functions even have aliases because reasons. It's been that way since a very long time. That suggests to me that complexity/optional features are not frowned upon - only some types of complexity are seen as bad, and only some types of simplicity are apparent worthwhile. Spelling out personal preferences here would probably help solve these discussions faster. > It does seem as if we're trying to replicate other languages, relentlessl= y > trying to "fix" PHP, which has been and still is one of the most successf= ul > languages out there - typically a lot more so than the languages we're > trying to replicate. > > Regards Peter --=20 CV: careers.stackoverflow.com/peterlind LinkedIn: plind Twitter: kafe15 --047d7b5d83fda8527c05306bcd97--