Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:123685 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 DEA1C1AD8EA for ; Wed, 19 Jun 2024 18:25:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1718821616; bh=JGii0jpu0HwJWCt+IXTCp7yZEZfsJZZyXAEeaR9WqDM=; h=Date:Subject:To:References:From:In-Reply-To:From; b=AbiKQODbs0g87M+uh7WF+yGuhekoR92XDID5gFylGJq35ZxnrHuKIosEP8lNXGYm4 +MB6ZlSzOSq2TwKv81qROfEfFigaqkz6aJ1Qd1re9W2R1UpUgFhwpP2LSVkGfL65me oJD1fCAT/afvH9oyBzSx7Dbn2PzAsALC0X5bBuIwKj8q6yUNvhUs9Gbhr2X6dEFAMy 0TA29aVbEE9GvX8TV8cuG2pEyOmz2RpfNLOhlzV6R3n4fkyVioWNENtGIwt5clbrgV hO4eG2tLlt/lfMiJ+Lg5FsTYwi/O9XQTnrj631MqQqs5XGfG3NLLiPKqy0zxnDt8H8 LXclvuaTAKkiA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 5D5C01801E9 for ; Wed, 19 Jun 2024 18:26:55 +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_PASS,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from chrono.xqk7.com (chrono.xqk7.com [176.9.45.72]) (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 ; Wed, 19 Jun 2024 18:26:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bastelstu.be; s=mail20171119; t=1718821536; bh=YqDaiUtXe4KNuMZkuc2wElHndYwwF9xrZSi/NaMonHg=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type:from:to:cc:subject:message-id; b=LlrvN1B/rg4zGN8d89P8cmveyQSsZjh2GhM8NPoZdxsf/1DLNaQmbIbSY41OBhPqZ h19WMQMHZnNS4SXB3sn0aYIeDdQ2tRXrBq7mYLK7eUZ5yLuN55VHSev3h4iUY/aQlh H0HqlA9wlsV1d2D5UcFiA2BXaE7uv3QkNd/OtDI0jTWzY7KOx5/ZsbY4i8MYyIfs/Q +TDHrezLilUOk7asJo0+rlyCb5JBwJ3/jiV1W4F3uS2a4Obj6HgE1WTnbST+J1wuCv Ij6t3p4TVxUpnQtF0iLjCpdAepLuyG+c6JavL43U8JFeTDpGUbsg32hVjvwtCDTNU6 K/KN81rCxcuTQ== Message-ID: <672fc21c-5fed-4cbe-9642-bc8e56f4955f@bastelstu.be> Date: Wed, 19 Jun 2024 20:25:34 +0200 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 Subject: Re: [PHP-DEV] [RFC] Static Constructor To: Erick de Azevedo Lima , php internals References: Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit From: tim@bastelstu.be (=?UTF-8?Q?Tim_D=C3=BCsterhus?=) Hi On 6/19/24 16:03, Erick de Azevedo Lima wrote: > I have considered some names, actually. I just chose this one for the > implementation because > I tried to design it to be as close as possible to the C# implementation > and they call it "static constructor". > But the name can be changed to another one without any problem at all. I would suggest `__constructStatic()`. This matches the existing naming pattern of `__callStatic()` being the companion to `__call()`. Best regards Tim Düsterhus