Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:106825 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 27466 invoked from network); 31 Aug 2019 04:45:59 -0000 Received: from unknown (HELO mail-qt1-f169.google.com) (209.85.160.169) by pb1.pair.com with SMTP; 31 Aug 2019 04:45:59 -0000 Received: by mail-qt1-f169.google.com with SMTP id r5so4538743qtd.0 for ; Fri, 30 Aug 2019 19:18:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dqxtech-net.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=XEwYxzVyTs3caXkqZ/zttisKl0jIcdIv5eBLt25mCEU=; b=LjMBUEztJrFl8PGtXnWn5lJMkqMTydEnP9vnzgS6lXGA0dpLyJt5K7HI673Ki1mJps zUrVTL02GPHHOo9K2tzVF/BRkFDTZGVx8bfjBbfoRZNYW6gBBuICHSVjiBiHvCYBCtQS T6wv6jL2tuOhOvAwZ2FUcizVDJe7dg+z2h9yF0whhfaY4SxrPP4yxaosfD0gtNGt4gPR q1kBwnEdN+/2iypTLEXCzyFohJ8pV+wGJJ55BEeWd6wJIDNV6/oRewtGH395XL+CAsgu Sxzhgc252l1ot3ATr90QzGcldXOh1UBxCME921EUTjPZ+Ifg0zSOYFRAyc/HpSRU3AuG MrZw== 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:content-transfer-encoding; bh=XEwYxzVyTs3caXkqZ/zttisKl0jIcdIv5eBLt25mCEU=; b=mJCIwLNnoQrNDTJnecU/IvZbVShnWwACvXQgcYQkWpiKneNRgCO6m0ua7pqqzzCm7o j1ATv9yrJ0uIzWwnJc36ATZYdkE8+FcTblExSi5i7GVxeclo86TNu2Tw9AyFefRijN7i +leJ4iuCuIzEnfM0JWhEXzD6GTmWmwYAOAtnPwJp2WSplZa82ncwgbSi0C6ozZGrA/WG l4bDN8NNmQIgfTyicotDUIz7+DtQkR+AUpARTShc2LJBBzI+7cCTGSUndP+z6FkP8kmG QTNDbKolG2H/NYQQAyjdwfw5FArR7hsuAchnu8shi18M1eLQxa2QeLVHPMNoGwPAVJjc XSuA== X-Gm-Message-State: APjAAAV6rEHE48vpv2bPn+wvd5qGKiJeqpP4s+Bad4ZX1W9yMyYy+Nym hcN+cQ648rLgbZAZ7NbAiV8YXpgwG4s= X-Google-Smtp-Source: APXvYqyjqUYNGAFyy9jix08NWYznZWl9OO0JwN7AvwX4DDNsycM8GSdx/GLwDJjNCSyBrKQbN5FduA== X-Received: by 2002:ac8:474d:: with SMTP id k13mr18425793qtp.266.1567217925860; Fri, 30 Aug 2019 19:18:45 -0700 (PDT) Received: from mail-qt1-f178.google.com (mail-qt1-f178.google.com. [209.85.160.178]) by smtp.googlemail.com with ESMTPSA id z22sm3530689qti.1.2019.08.30.19.18.44 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 30 Aug 2019 19:18:45 -0700 (PDT) Received: by mail-qt1-f178.google.com with SMTP id z4so9809846qtc.3 for ; Fri, 30 Aug 2019 19:18:44 -0700 (PDT) X-Received: by 2002:ac8:5354:: with SMTP id d20mr17954876qto.119.1567217924749; Fri, 30 Aug 2019 19:18:44 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Sat, 31 Aug 2019 04:18:33 +0200 X-Gmail-Original-Message-ID: Message-ID: To: Larry Garfield Cc: Steffen via internals Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Bringing Peace to the Galaxy From: andreas@dqxtech.net (Andreas Hennings) On Sat, 31 Aug 2019 at 02:31, Larry Garfield wrote= : > [..] > Whether editions is the "right" way to balance "don't break 1 million lin= es of 15 year old code" with "this behavior is bad and we all know it" and = with "this behavior leads to sloppy code that is prone to bugs", I don't kn= ow. I'm not sure what my stance is on these questions yet. To me the main challenges seem to be to find a syntax that feels natural, and then the technical feasibility of actually implementing and maintaining this in the engine. It probably does feel awkward to have declarations on top of every file. And it would mean you need to make a conscious choice for every new file and every new library. Not just a "yes or now", but to pick a specific version or edition number. You would periodically modify your code to increase this number. So doing this on "package level", whatever this means, would have clear advantages. To some extent this awkwardness could be seen as the price for having a language that historically started somewhere very different from where we would like to see it in the future.