Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:106473 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 48651 invoked from network); 9 Aug 2019 10:05:59 -0000 Received: from unknown (HELO mail-wr1-f41.google.com) (209.85.221.41) by pb1.pair.com with SMTP; 9 Aug 2019 10:05:59 -0000 Received: by mail-wr1-f41.google.com with SMTP id p13so22698887wru.10 for ; Fri, 09 Aug 2019 00:33:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=fft1iDmukBnFX0Pl0QkEBOry089vnyu5sMuEgKlNw1U=; b=bQErZPwQXBCTRJ3TfqyHM5jYBM8UI72fim4fluFcpVhIIZ5bcjLbxG042RCMwzaU25 rOqyvnDL5AWh/f/yyexdvgNOuoOytZ3/Mfy6Yb6dJyp5YvGiY55xUFcRzmGi5bOcaTts ZHvQuMDaJc2BIMVjAiFMaKtbAJVxNkrd8nfPIDD74sjxVn+KjK60058K8QIlBDbN8nFK b4EyBZgCASNctYR9HhjzUpKjsO5+m0ry2QJVA3F0RNVwFIS/JQcOojbV0oQBOykjfaXm 0MDCxFS5BcxJyDsKcZORI2b/nQ0qnCwW1Lc3A0LnMBp9IZuCuBKXUB1ed2v/7xTAaVU6 G2zA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=fft1iDmukBnFX0Pl0QkEBOry089vnyu5sMuEgKlNw1U=; b=iu8e3vEwoSS8ob4FC3AUvgeQPknBSC9YJwplf2gGnJ+JOmdKEaQye9M20wAF3UZ5F+ 4ohASlXM7FoD5punj4HIC4Flu+3txp9maAj1l0mwgCf9ZVXmWJNOtHRIbo70s2mAZ5II iRZNj9bolKLyg84S9dfDV3XI190z2CHWykifAgcZ0YdKldYciTOuBx4D8fSzSd89OZ9p s3kx4hPccKCC1POIkmP27R3GRdjCqrRKn50t5Ou/XflN7CTecWgLpxRJHswQdXEEL7PN AAHFbtbEFFYYtO3jHuFnoz336akHTvd928KSdw9EPQClADBrtkN7JztBBNIXsSpr16SO 4OLQ== X-Gm-Message-State: APjAAAXQv36QVWA8bMRn0a/bS65OP7kSxxATuygwZ2jsWxXYTD7puGKv LuqIfv9X01rCVB/T/YjFbwYWVVjM85If9iAA3OM= X-Google-Smtp-Source: APXvYqy4dgZasZzfR0KkVDf+uZ8XWrPuP+885iF6wotRO6p1kx0LhNt4yCzIgjmq7qTHswva191TPxs05xLCY8dV2FU= X-Received: by 2002:adf:eacf:: with SMTP id o15mr23108160wrn.171.1565335999613; Fri, 09 Aug 2019 00:33:19 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Fri, 9 Aug 2019 00:33:04 -0700 Message-ID: To: Nikita Popov Cc: Zeev Suraski , Internals Content-Type: multipart/alternative; boundary="000000000000360f23058faa30fb" Subject: Re: [PHP-DEV] Bringing Peace to the Galaxy From: kris.craig@gmail.com (Kris Craig) --000000000000360f23058faa30fb Content-Type: text/plain; charset="UTF-8" On Fri, Aug 9, 2019 at 12:22 AM Nikita Popov wrote: > On Thu, Aug 8, 2019 at 11:25 PM Zeev Suraski wrote: > > > > > > > On Fri, Aug 9, 2019 at 12:02 AM Nikita Popov > wrote: > > > >> This is basically what I have been advocating for a while now already, > >> somewhat hidden between all the other noise of the "namespace-scoped > >> declares" thread. The model I would like to follow are Rust editions ( > >> https://doc.rust-lang.org/edition-guide/editions/index.html). In PHP > >> right now, the way to do this technically would be based on a > >> declare(edition=2020) in every file. I was hoping to make this a > >> per-package declaration instead, but haven't found the perfect way to do > >> this right now. > >> > > > > I think it's similar, but not quite the same, at least as far as what I > > understood from what you were saying on that thread (I just reread it). > > First, I think it's important we don't only focus on what we're going to > > change - but also on what we're going to keep. The motivation should not > > be slow eventual migration from one codebase to another. We would have > > two, long-term supported codebases - a lot closer to C and C++ than to > > different editions of a single language. The distance between them would > > be quite substantial from the get-go - and will likely grow farther as > time > > goes by, similarly to the situation with C and C++. > > > > I think this part is unrealistic from a simple manpower perspective. We > have something like ~2 full time developers working on PHP. Even if you can > rally some additional interest around this idea, I don't think we have the > resources to create a *substantially* different language in any reasonable > amount of time. Doing feature additions and changes to PHP is Hard. Even > simple changes require a fair bit of design and engineering effort to > integrate with the large complexity of the existing language. This would > not change for a hypothetical P++, because we still need to interoperate > with PHP. > > Even if I agreed with the idea (which I'm pretty skeptical about in this > particular form), I really don't think we have the resources to do > something like this. > > Nikita > > I think it should also be pointed out that there's nothing stopping anyone from forking PHP into a new project as Zeev described and maintain feature parity. As I understand, the reason something like this hasn't happened already is because it would involve a ton of work and nobody wants to deal with it. But if you or anyone else does manage to put a team together and make something like this happen as a separate project, I'd certainly have no objection. --Kris --000000000000360f23058faa30fb--