Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:111177 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 40218 invoked from network); 24 Jul 2020 17:02:04 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 24 Jul 2020 17:02:04 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 2AC8E18053E for ; Fri, 24 Jul 2020 08:57:03 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-pf1-f176.google.com (mail-pf1-f176.google.com [209.85.210.176]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Fri, 24 Jul 2020 08:57:02 -0700 (PDT) Received: by mail-pf1-f176.google.com with SMTP id 207so5391729pfu.3 for ; Fri, 24 Jul 2020 08:57:02 -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=9vlLtemUaGjoNaD45zytAcTnIUmEBUoq31OAcXX/3BM=; b=FUSJoXR6Rkzs9aOYijnzST8p40b3OHuUrStFIY/59Cdn1AEjEY1+wGPYM2ITkhWmrd rnz1C088PzFgPorI0YbOgqJScdDTv/D+vZ9OexejN4uoImTKJLJPRabzIriedLnnRxHt zCanYQXVFzPfRl8ZekcyAgntqOR3pW+P/sG8qqV0uWy6O5dXFq/BLQ0Yfl4C9uTb7z8L eVyCMzJ7ScOj4q2zodmithiaGPSSuwz0QHnK6Dw5gzmcAtVAeWJSKFhWc3p66EP5gd7g PdpVNVMjyAZdl5jfk9EAhIIPQ9azzK/EIOiEFvbJauiYIRUzNb3pZkFqAktsnDkzVWuU HQxA== 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=9vlLtemUaGjoNaD45zytAcTnIUmEBUoq31OAcXX/3BM=; b=Gqn23flSuTdozW7fbyAr7OG3y1mbgvWPcvpI2J/PQBXLEwuNVGStYevK1XNFLqCNhl 8fGa3KFS6omLo3Z54kbFptFx0XN5+0VToiytTBkWRPcupE8k+TmK55TXOhIifOwXIhZm O5FnJxv4TSLN44VO4JOvFd6WFRyD8RB2bqhTZQQ6GaRKFupsK7H1gy4oiJ0bEPNlYj+f mU/3c399uVWbHf6CpGz46faO/vvDkXK1NE+6GpWH599iRQjtggLQil2N8pRwUG09xdsj rtF+SeCfZg7GHdIPrXgzOMqTC7hrds3DShVAv1ksVK5Ocb1iy6dEzGHNnsM9mEU3C/ae fbfQ== X-Gm-Message-State: AOAM531IY2aHK2ej/xn/Eve3JPEHnfyFqP4l6a+EpNXx2Wv2hesM2RfG PQmRgdVnwg6q8wriBujgkmPsy1sYSfb1EzlsX5I= X-Google-Smtp-Source: ABdhPJwNhStacpZ76GNfJnR301OT2riZHH4VqWpeUkipXTifQydfiqS11XleIvUWC0/NM0L7g+1/yINmDkfftLd2y58= X-Received: by 2002:a63:fd03:: with SMTP id d3mr9190523pgh.76.1595606218996; Fri, 24 Jul 2020 08:56:58 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Fri, 24 Jul 2020 16:56:47 +0100 Message-ID: To: Sara Golemon Cc: Nikita Popov , Bob Weinand , Benjamin Eberlei , PHP internals Content-Type: multipart/alternative; boundary="000000000000e27fcb05ab3205cd" Subject: Re: [PHP-DEV] [RFC][Proposal] Renamed parameters From: t.carnage@gmail.com (Chris Riley) --000000000000e27fcb05ab3205cd Content-Type: text/plain; charset="UTF-8" On Fri, 24 Jul 2020 at 16:41, Sara Golemon wrote: > On Fri, Jul 24, 2020 at 10:10 AM Nikita Popov > wrote: > > > > You added PHP 8.0 as a proposed version, but that will not be > possible > > > > anymore 2 weeks of discussion + 2 weeks of voting are not possible > to fit > > > > in before the feature freeze, which is in 11 days. > > > > > > While you are technically correct, the primary point of a feature > freeze > > > is not allowing in completely new features. > > > It will always happen that there are changes and extensions to RFCs > > > introduced for the next version which may need to be addressed first, > > > because there is massive benefit to the new feature in that case. > (from a > > > backwards/forwards compatibility standpoint for example) > > > > > We should of course be open to making minor adjustments due to > > unanticipated issues after feature freeze -- after all, that's where we > > gain experience with new features. The emphasis here is very much on > > *minor* and *unanticipated* though. > > > > Endorsing this. Anything post FF needs to be held to a high standard. > Minor and Unanticipated changes. > * The option to set alt-names on parameters is substantial. > * Making named params explicitly opt-in is less substantial (though > certainly not trivial), especially if it were hung off an attribute which > would mean no actual new syntax, but Niki's point that it wasn't an unknown > or unanticipated issue stands. > > I share OP's worry that this pushes workload onto library and framework > maintainers, and I wouldn't look forward to the review of all APIs to make > sure their names are correct, but the vote has spoken. We should > absolutely continue pursuing this topic with an eye to 8.1 so that library > updates are less painful moving forward. > > -Sara > Hi, My main concern with named params as they currently stand is that they are fully enabled: if we release PHP 8.0 with named params as they are now, there's no take backsies. Fixing the polymorphism issue and the maintenance issues become much harder as you have to work around the fact that there will be userland code relying on the feature as shipped. If we target fixing this in 8.1 we would lose the option of being able to make named params explicitly opt in and as such any possibility of a strict solution to the polymorphism issues that it throws up. Regards, Chris --000000000000e27fcb05ab3205cd--