Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:109562 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 59981 invoked from network); 8 Apr 2020 13:28:46 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 8 Apr 2020 13:28:46 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id A28B21804DD for ; Wed, 8 Apr 2020 04:56:56 -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_H3,RCVD_IN_MSPIKE_WL,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-ot1-f46.google.com (mail-ot1-f46.google.com [209.85.210.46]) (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 ; Wed, 8 Apr 2020 04:56:56 -0700 (PDT) Received: by mail-ot1-f46.google.com with SMTP id t28so6493891ott.5 for ; Wed, 08 Apr 2020 04:56:56 -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=P0Nw0zy19kQsLudxIk7Pz4h7OrbpM8JRNYl0sAHcbXY=; b=MUo9jrNojBgFPEtAPXqKq+tbOFjI+cgQF3GM3pl4ppRvdJxNbyFhPOvy6ubsv97CvJ OYga86s0ipJ2tTjhCq/OOieMkWUIwerNWvCqxvat3DoF6SEJx2b0NOx1hrPPazXDGzvz LTA8vvpWkx3nfg09nWedhTTlmeJQTKh9b/mRQ3wNhOGKil5TAEMWaHuSlXHzfluND30g oilLnT0eFYmYwi7rfb2wisd/BNCvsQfBRlP8thEALDfv2//xdj7CkkEK4F6C+Rv0bi3H J3hNkSJj/2bAI0ikNYJCVds5Zqjxn/x3dGG6k8IOgT3SPTjylzSDRR6Rjpct2qfsVgi7 BiBQ== 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=P0Nw0zy19kQsLudxIk7Pz4h7OrbpM8JRNYl0sAHcbXY=; b=dl34PRHcnJyTKG47tljEYbb3N7odayUUNmxVgx+OBktmmucvrtN2jcCIAQN1hRehjx oGbrAvSCHPsd88epVT68QGBuCJRKLrMuWqzQTfwFf2JVmyg6d370BpkUPKubA/OaPIIb 5LdPRa3buseMWn/HVmuzRpTmezLguzKuuCKifSPg75ZiGRniX/3nNyo6uHQFcxY1P290 XWhXyVWGcuqKqwhGHLjtehI8FYyiccWlqOLy3FYOQbxGdW8kMFkvooch2btcjVGNd8GN Zretgzsdc58+tO7y+nHbE5OUuigrLR0ODyHZJdv2JcjsobvM0KIIeRIKt5+wXt2svbb/ H3Uw== X-Gm-Message-State: AGi0PuaqLWd7CYU+6jLQL/LiWvxib6RZJzdLA9knOP1w1H6oEOv3oscd ZxdRPeGHDO1NengJKNaSzredpJ4+7P92ITWgIBQ= X-Google-Smtp-Source: APiQypKKK1L+KE0DBS3Z69iqhVIDjtC39XRhMLGa8bqmi7iYrJek74Ic8qlhjzexs7rqZvnXBPwnWxg/KEGHC2gpziU= X-Received: by 2002:a9d:ef6:: with SMTP id 109mr4984771otj.43.1586347015588; Wed, 08 Apr 2020 04:56:55 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 8 Apr 2020 13:56:43 +0200 Message-ID: To: Nikita Popov Cc: PHP internals Content-Type: multipart/alternative; boundary="0000000000005ad09505a2c632bc" Subject: Re: [PHP-DEV] [RFC] Constructor Property Promotion From: nicolas.grekas+php@gmail.com (Nicolas Grekas) --0000000000005ad09505a2c632bc Content-Type: text/plain; charset="UTF-8" > I would like to submit the following RFC for your consideration: > https://wiki.php.net/rfc/constructor_promotion > I love it :) Just one question: Shouldn't default values be copied on the signature? That would be expected for me. (and that would make the properties still initialized when child classes don't call the parent constructor for whatever reasons.) class Point { public function __construct( public float $x = 0.0, <==> class Point { public float $x = 0.0; public function __construct( float $x = 0.0, Nicolas --0000000000005ad09505a2c632bc--