Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:110930 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 10009 invoked from network); 10 Jul 2020 23:43:08 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 10 Jul 2020 23:43:08 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 6EE63180531 for ; Fri, 10 Jul 2020 15:34:41 -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=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,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-qv1-f66.google.com (mail-qv1-f66.google.com [209.85.219.66]) (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, 10 Jul 2020 15:34:41 -0700 (PDT) Received: by mail-qv1-f66.google.com with SMTP id ed14so3356001qvb.2 for ; Fri, 10 Jul 2020 15:34:41 -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=qNMHcRk0XQWH31lzNotZb628Ja/kuICSPUzDM81Zl5w=; b=uCO4iuNZOl4Z9U2fhxLgCV082h4RhC0mfdaT1S7pZg4J9qPQ89yR3k/vRdhsXr2p4D Y0w5TqdlGJGjZPG7X2FhWCaOEsfve7jWIGNGV5zqXED8ktWw7ZOwJ/o0hcUakozeFaSc 0Y5xPITI1vSmehrL6XkgV2Ibu3WwtRjLxruHdf7Cf36y2Pm2gfJ8tG/8dSXeJdAuQu3c L3mQ3HM30yxlzZggsJC+BcFrJaMxVCXTqWi+R8HQsYRek0x/ulVapmjMSbYphVcRRzOT r6SONedKfFeAuWD80t3Lu9iaEBJ8gY4nUReRlTz+VOEGAFZCWPPkPuKK7dHSMYTkRwSf lgOg== 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=qNMHcRk0XQWH31lzNotZb628Ja/kuICSPUzDM81Zl5w=; b=Cr2x2izDMufFr2Bt7eV06J7Qrq35lrFLG0ra6EkpaecnWqg68hIJUwUJR3+1pLC+3d HMhtKwA7FKFnO+//RmOT6bQjuAoToulfqcRxrw/wtLi4QUkYDWOZ/dWg1BgJmxUiS8EW /CJh4oyzdKJyKVp/me/gPnn2An/hc9R50o4eGbg5vKzWOnZhclbh226ABpH+GRLr1ZJ6 pXvWvvu9JS5QvP1si5/a0Twb5qB9tsHIrKx/t4s3UObAxWEn8IzbAkeRHe1o5g1O68Vw hJX+VlALlvLpj7h8QNhfAGaqxBVTN9B7FddTRmKuJTQBsiG+BfY3hxGEX0ycHYpNbs3N HpFg== X-Gm-Message-State: AOAM531yVo7ZzyOMeepDhbXPlOdGUYSJ1X7vac2nRz6Ft4v+jyBzxWvF HwVA10EU7QZ5paspi3LkVuWNq3oD8tKq4EAQHMw= X-Google-Smtp-Source: ABdhPJxerFcauf59CAxYjbJ0I2lzjO12HKfpmHDkjGXLe9xfBP7g8m+Tdohr0jTnBnmJtaMeXUC1Q8rvy8//DGjyXys= X-Received: by 2002:a05:6214:18ec:: with SMTP id ep12mr71272496qvb.128.1594420479662; Fri, 10 Jul 2020 15:34:39 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Fri, 10 Jul 2020 16:34:23 -0600 Message-ID: To: Benjamin Eberlei Cc: Marco Pivetta , Nikita Popov , PHP internals Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] [VOTE] Named arguments From: cja987@gmail.com (Chuck Adams) > Then the question becomes, do we rename parameters a lot? I doubt it's a > large problem, and even then the variadics support makes it very easy to > handle in a backwards compatible way. In addition libraries are always open > to declare they don't consider named parameters as part of their API. Python supports the notion of "keyword-only arguments". If that was supported, and the renamed argument had a default, an API could rename parameters in a backward-compatible manner by introducing a kw-only arg with the same name. One could also consider an aliasing syntax such that more than one keyword could correspond to a named argument. Perhaps using an annotation? --c