Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:125408 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id 19EE81A00BD for ; Tue, 3 Sep 2024 11:49:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1725364263; bh=FGEaqs03lpa1kHVAXdIrYNzC3xQErhTt8z8pLGrSYM4=; h=Date:Subject:To:References:From:In-Reply-To:From; b=KhecqWX+LIMxjoju7EBGwQVVeTulV0mA1NasV5NhHTR38xNGRBRQJFmCl4sKbzNPa jYhs4y0Z0J+YXiCk98nkKzRykAkSfLkv+XcOSyDDUSEr2jtY6YueNi6WB/3XPPRVqq 0kqjKOTnfY2Ip5yFEDMTBl9n5RuobrZVUK7x7tUHK4Xeq9I1CJhGyLCL+c2Vzh+RCM PyQ9eRcGLdvAWTO+pfx80CvJyl9k9WEa67lCjh7HuU0C68VLLnCKiZMEyeFRpkSmeP n5hBKIHcIDg5I+jr2QuR35UIPl1/ViHkffKwchpUqTpkzl4N5LLu5RSeQmzOikFEEN dMd8bGQAi0TqQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 53AF4180068 for ; Tue, 3 Sep 2024 11:51:03 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-108-mta199.mxroute.com (mail-108-mta199.mxroute.com [136.175.108.199]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 3 Sep 2024 11:51:02 +0000 (UTC) Received: from filter006.mxroute.com ([136.175.111.3] filter006.mxroute.com) (Authenticated sender: mN4UYu2MZsgR) by mail-108-mta199.mxroute.com (ZoneMTA) with ESMTPSA id 191b7b779410003e01.001 for (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Tue, 03 Sep 2024 11:49:00 +0000 X-Zone-Loop: 240899d2e90d4c3a72d29c4ce44532229aeaa555b153 X-Originating-IP: [136.175.111.3] DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sandfox.me; s=x; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From:References:To: Subject:MIME-Version:Date:Message-ID:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=VUCrtg1+uTHCeJcZJElVcczKhqZfNcUyHt7/fpXgu+E=; b=dz7zLkqytvJlJeAGOVZmbJWMMh ds4wac9YEyhJYL3YqJQvR2m+CHWwPMYU8UC1VJNxZOEgQ07W75P+IlrfLbleCmoXtww1+OEDc9Jlt 0mwZCgKJJ3oek3foqhCxqAF7i8Bh7jFyz4ycpkinAks0IffOiY3tPkDafBMkSjG3p9ShnKsTmuqTo NzysGPbqMaTUh3R9qTNhewlCHWdxeAlMgYJ2j+Ap0NDGBYsoC8haNkzYWV0b3zJb5gLGDe+N6DuaK kPzZqIvN+WRPqK1Y2uwPE8W18EEJPruhOA9I1L17GyYguhHSIn5IVGrHTPJAYSrhbgo6HT7WEvy1A 8dmphsdw==; Message-ID: Date: Tue, 3 Sep 2024 14:48:57 +0300 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PHP-DEV] Pre-RFC Discussion: Support for String Literals as Object Properties and Named Parameters in PHP To: internals@lists.php.net References: <1C1BB102-EE71-49A6-A057-C727A39FC38F@newclarity.net> <480c0005-f495-4b0d-bd5d-5322077e466d@gmx.de> Content-Language: en-US In-Reply-To: <480c0005-f495-4b0d-bd5d-5322077e466d@gmx.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Authenticated-Id: sandfox@sandfox.me From: sandfox@sandfox.me (Anton Smirnov) On 02/09/2024 19:42, Christoph M. Becker wrote: > On 02.09.2024 at 16:51, Mike Schinkel wrote: > >> Generally I am one who welcomes new feature ideas, but I fear that string literals as object properties would break a valuable assumption that all properties must be a valid identifier. Without that assumption I fear many things that would become more complex. > > Is that so? See . And it works with methods too, you just can't define them but can catch with __call: