Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:113355 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 66038 invoked from network); 3 Mar 2021 18:35:14 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 3 Mar 2021 18:35:14 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id F03411804F4 for ; Wed, 3 Mar 2021 10:25:45 -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.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,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-f45.google.com (mail-wr1-f45.google.com [209.85.221.45]) (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, 3 Mar 2021 10:25:45 -0800 (PST) Received: by mail-wr1-f45.google.com with SMTP id a18so16564764wrc.13 for ; Wed, 03 Mar 2021 10:25:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=beberlei-de.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ZVPvnIpGNbxe784Tpj9k3jZb/dcgVZyIWAg5JO0sLGU=; b=ObQ8h5giIeBtznyni6XckB6YIGRymunzZz03pEqM25942IbIZjnmCyBbwYWO7kQHPz D45HRKK8lQJ9mKRatvLv08I4oG99V8seig7oi2zeQ7/92GqoEg0CllBLxdUiZpXE5R9d 1+BKcJiHO3HHHB7sZbQ49R6WTt0+LflxoKYZ63YyCA5uhcrM4bK/7wnoI6OCUc0Kte5X +zvwq5tF20ReFXBYbgfcf5PfdkxpemtN7OobS/I9NuChvtCn3/nTg5EZArMUbLSWYCeb zXZd2QyYpdmYCs+n0AfCZMFFxlYCg9qt/w8uD8utLqOiHSCWdejFNyJ9FRD16Bs06xZW 7/0w== 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=ZVPvnIpGNbxe784Tpj9k3jZb/dcgVZyIWAg5JO0sLGU=; b=ZvfBxbriSsNfLiYz5M2pdLdldpfd93zPVubPp9GJTc+2V52TJR1kGQ8nfB5+6can0h jZNvhUC5iK2mXYvq0Ojk2tGi+oKctUj8GULYqDV8frhY/1QRjcOg8bFlYNHi3g6vYo5+ XelwuFmCTLL9V4gpx1NfrOsW317P+Q5sdJ4/L/OxreiRMz5HrnRKTHyf24sGn7ZrKlF3 Kz/FNVj6tt8sHoYAGMkl2b1dGkkrtBBC6vSHCm8xXRaTcNlnLzhe2kJkyZDHV/zpHpaZ R7+fYxpTWQf5k+eWNNFfuLH9n177WNkl0wBiWl49k/WYIW5PmHT6pB4p+l4l7bjq19hv NTHw== X-Gm-Message-State: AOAM5311OWtRbzbwRlsp4bFb8Gp/ZWgqK8A7ijua0Tp/tjlScMXFtU+W IfkCpnyAZR1DH63317d1qjeu5E9wIm7ENk6bWGGdWA== X-Google-Smtp-Source: ABdhPJzB+gHlclwOLMKgW4ntXiJfao8G19PHLXT1oxt0iig5NDx1z5CU7IOcyV5HsfoGjg1UhUHiwfVFy1EMoOAnq8A= X-Received: by 2002:adf:a59a:: with SMTP id g26mr28685670wrc.271.1614795943433; Wed, 03 Mar 2021 10:25:43 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 3 Mar 2021 19:25:32 +0100 Message-ID: To: Nikita Popov Cc: PHP internals Content-Type: multipart/alternative; boundary="00000000000097e80405bca5fab4" Subject: Re: [PHP-DEV] [RFC] New in initializers From: kontakt@beberlei.de (Benjamin Eberlei) --00000000000097e80405bca5fab4 Content-Type: text/plain; charset="UTF-8" This is On Wed, Mar 3, 2021 at 4:04 PM Nikita Popov wrote: > Hi internals, > > I would like to propose allowing the use of "new" inside various > initializer expressions: https://wiki.php.net/rfc/new_in_initializers > > In particular, this allows specifying object default values for properties > and parameters, and allows the use of objects as attribute arguments. > This is the missing puzzle piece that i imagined would be needed for nested attributes. This is really awesome! I look forward to going over the patch to see how it works, specially since Martin's and my attempts failed to break through last year for Attributes :) > The RFC is narrow in scope in that it only adds support for "new". An > extension to other call kinds should be straightforward though. > > Regards, > Nikita > --00000000000097e80405bca5fab4--