Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:110688 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 2225 invoked from network); 19 Jun 2020 23:26:04 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 19 Jun 2020 23:26:04 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id A3DD4180538 for ; Fri, 19 Jun 2020 15:12:20 -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, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-lj1-f176.google.com (mail-lj1-f176.google.com [209.85.208.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, 19 Jun 2020 15:12:19 -0700 (PDT) Received: by mail-lj1-f176.google.com with SMTP id c17so13154756lji.11 for ; Fri, 19 Jun 2020 15:12:19 -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=euJJcRzd5f3OyoIou28gFWXrK80/iExwoX6QvaTYzgY=; b=ZPZNnit1d5cxKMBEsJq8D+wO7aaSydhdkQC2Ud36aFKjViwMdh1WaCbk507hRbOp8v uCb4vQzP0p24QQ9FuKcie0sgLHBD2TW3Anmgmw+3k9vuZZCy9a3s9EbNr1z7n2TvqrMI r7XooVTK/sAuRS8UTffdKr2LZJ2KJvV4Fof3Zm9lS0v70cMfQNgXvZDRnJIMewSA3u4G b7NYWEptc+iPUbBiTzk60RqhHWy/3zjmoXP0MT1ce33f2sqPQJUviSxYFjSN6cQ0jTw8 bwWpGeDlE47n0mKbj7m6B9Ny6GuqSCa5L9IOziVOB8aQ59+w6MEEySYEk8U2Rek3Ot03 kXJQ== 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=euJJcRzd5f3OyoIou28gFWXrK80/iExwoX6QvaTYzgY=; b=tSDRfxryuRnTDqwXsrDw2LBve7Mfltb9AiZvsOaiIev86pngQKLFW4GpD40QCJvX6K sXSEjCHRY0kGGAXVMW/HsasccJxW5vnTtAFRMZyUPMYv/WxoHbkkjXpVy+GECLlzGh+P T155/T1kdY9Pc+DfokpS68Za5YNrd7GK0JPwWZZz+81qug+5mjvaNy3HxuFmyLnyitgr BcH6DfqZReGwb7WxUVjFGS41uUS46rVFJ4CBAbTm4Hy442DiFrQ8mqMA22+jJ/iB67wc TWO9qSQiruA9I3v8azybg+bxwdmqZtrEf7MA2SPneS7bSKBBbfe4Y4sQMQc5VCHE1A7R QEbQ== X-Gm-Message-State: AOAM533dRQU8gxsAt7Zuch6K+Tuq07BGlk60NyPq5WxA4IS4lHI0ZuPI wXYLKt1kxZY+a5Wi3acVvvIWxp/a3Zaqi0qL/gU= X-Google-Smtp-Source: ABdhPJw8AquF3xMJYz50mHhsVenl+mXSnaIfcCAC/1/bh5rVSnKryNuFPyWZ6kuGCBTjQvKLlPxG07yeGg/rczXINhE= X-Received: by 2002:a2e:98cb:: with SMTP id s11mr2757637ljj.402.1592604737709; Fri, 19 Jun 2020 15:12:17 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Sat, 20 Jun 2020 01:12:06 +0300 Message-ID: To: Nikita Popov Cc: PHP internals Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] [RFC] Named arguments From: benas.molis.iml@gmail.com (Benas IML) Hey Nikita, This is a bit late response but ah, who cares ;-) I suppose that for consistency with named params, we should also make `declare` compatible with this syntax. So for example, `declare(strict_types: 1);` would be the same as `declare(strict_types=1)`. This would also make much more sense to newcomers and beginners. Best regards, Benas On Tue, 5 May 2020 at 16:51, Nikita Popov wrote: > > Hi internals, > > I've recently started a thread on resurrecting the named arguments proposal > (https://externals.io/message/109549), as this has come up tangentially in > some recent discussions around attributes and around object ergonomics. > > I've now updated the old proposal on this topic, and moved it back under > discussion: https://wiki.php.net/rfc/named_params > > Relative to the last time I've proposed this around PHP 5.6 times, I think > we're technically in a much better spot now when it comes to the support > for internal functions, thanks to the stubs work. > > I think the recent acceptance of the attributes proposal also makes this a > good time to bring it up again, as phpdoc annotations have historically had > support for named arguments, and this will make migration to the > language-provided attributes smoother. > > Regards, > Nikita