Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:112556 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 90894 invoked from network); 19 Dec 2020 11:57:04 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 19 Dec 2020 11:57:04 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id DA90118054A for ; Sat, 19 Dec 2020 03:28:56 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.42]) (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 ; Sat, 19 Dec 2020 03:28:56 -0800 (PST) Received: by mail-wr1-f42.google.com with SMTP id 91so5794186wrj.7 for ; Sat, 19 Dec 2020 03:28:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=beberlei-de.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=9XdDVJJv1E09uUXnYgeNL8oOJQvnliGoOHM5OxW9vAM=; b=Q1muLdy/zMFwJ9JWCrMgA/l03HrbjxnZZd4I+4VqXfB5yurU99dauMjvovy08rdggU QiajIk6jwm7DxfluQDhX9v9cY2Yct0oT57ER6u3lvEWqSvboO9dj2XI67/CMjc2rFnlU 7cEyDN7LFoyW8R7tVdXgaV7Ks8QVJ+YjcRXaOkdO483W8QL9pQAqVjt20VUSc6Vqk7Q3 ojqcYaPF5CcZUnk7VmmQcj88E77ZLJkaCN28sXT9omDl3vVwICOGJKrikV9/eOmyh4Ll gN1/02rkJBzvKUFOALXUrJ3/qBVqTYvpcR/A+08/vLuCNFb2r8ipkfSqqSZItL1sb/hN PZsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=9XdDVJJv1E09uUXnYgeNL8oOJQvnliGoOHM5OxW9vAM=; b=BTb/gIFO6Kjn8hQJsnv11An/sNdYGFtOFrC2pDeWLOehErFGU/86k9ZXVMZVwT3N8R tjFpQ6XzVdwarD9aljrrIIXydv69VxeGci3a4Pqtvk75EL6QC4N0A8THue9oXpgSv/dR zIjbfEbIzxvTZ6X5LHBHM5fNr4Yfwvh5dmJh0W3Qu7qMAb7SWE6JGt5UxDLnbzQwVPri e5QSZYkYrS+C0ngX2F7rcp9elBjQUDCPqrEzwzoeFUgeVr8XhyEQ5nq2G/2E53EW2q6x TkXqQ/ex0ciePC9foXnCVk/mF1/nY0DJlKvFr7TA5YV+ShWZKXj7BtcHLbPzIVhyQ8QN n3hQ== X-Gm-Message-State: AOAM531NLyXnriqPfdlLTo8XkQcJULL4w04f7BHIP5yCXED0eOvw9nij lwSP+F1SbnsFYGfhYCUvZJLDKuDDcbYsL/8e8/MU/pavb2VyHqnA X-Google-Smtp-Source: ABdhPJyee3S8fRUok6mGnKtyVNOpVXpUYsJhxWxw+v+PpOzazeLHP/0FhcmhTtFKV0CtcaYiJfq5qtfexepZ+t02zsA= X-Received: by 2002:a05:6000:11c1:: with SMTP id i1mr9257015wrx.16.1608377333997; Sat, 19 Dec 2020 03:28:53 -0800 (PST) MIME-Version: 1.0 Date: Sat, 19 Dec 2020 12:28:43 +0100 Message-ID: To: PHP Internals Content-Type: multipart/alternative; boundary="000000000000a8723e05b6cf87d0" Subject: [RFC] #[NamedParameterAlias] Attribute From: kontakt@beberlei.de (Benjamin Eberlei) --000000000000a8723e05b6cf87d0 Content-Type: text/plain; charset="UTF-8" Hi internals, another RFC using attributes for 8.1. The patch itself for this is really small, but the implications require a detailed discussion and scrutiny. This is my take on parameter names now being public API, at its future potential for code maintenance, refactoring and backwards compatibility. There might be other approaches that I am unaware of that would be better. This feature will probably also be helpful to allow more work on improving named params API of internal/core APIs, as the time period between named params RFC and 8.0 release was rather short and we might find that we want to further improve the names of internal parameters. https://wiki.php.net/rfc/named_parameter_alias_attribute https://github.com/php/php-src/pull/6522 Looking forward to your feedback. greetings Benjamin --000000000000a8723e05b6cf87d0--