Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:126603 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 2D7291A00BC for ; Thu, 6 Mar 2025 12:49:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1741265240; bh=TW28gFU1h6KLk8xAoCrSSU8O9I7BfTWjtxYbYqquqhQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=JC6YJ+SedlFy6vnDGgDHpUXNhgQWK+jIpPdM4CrAJmwbIJr1p6H/KKck++ZvcjKL4 ykNd55mwdjzhT63QCLwvYcFkeIBeNGIwr2X47t9Mckut5pIcGP12KzOtFwNeSCT5qq oGJKnIQkpsOjNCLbRp2Ssl57cCpC9zwAlHEnQfozHLirbzyQr5zlst8uGbrRuaUhPi +g0veAQCtKLsP2X6jAHtOUlpkQ4pQOJda10IDsw+5NPtYRGwASsviE/C6J7nNvtOpB uYUEl7GyJFPCwN2GX/BOlCcyYTxoLerWFfLfSI2YAX8KIvZ4f27FikWzXQ9nKVTm6U bzIuxUfLZGfBw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 077731801D6 for ; Thu, 6 Mar 2025 12:47:19 +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=ARC_SIGNED,ARC_VALID,BAYES_50, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS,T_PDS_PRO_TLD autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from crane.ash.relay.mailchannels.net (crane.ash.relay.mailchannels.net [23.83.222.43]) (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 ; Thu, 6 Mar 2025 12:47:18 +0000 (UTC) X-Sender-Id: yszpovajlk|x-authuser|juris@glaive.pro Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id B37F9323DEE; Thu, 6 Mar 2025 12:49:52 +0000 (UTC) Received: from server42.areait.lv (100-108-253-94.trex-nlb.outbound.svc.cluster.local [100.108.253.94]) (Authenticated sender: yszpovajlk) by relay.mailchannels.net (Postfix) with ESMTPA id E4FE7323D82; Thu, 6 Mar 2025 12:49:51 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1741265392; a=rsa-sha256; cv=none; b=co2XIodcOqE6aBRWWXusg/yYZss3eDxcUpq0BmsoXn/K7T2cG1T/GXr+33hW5wpm6d9NxZ CKq2f1o01SNgL13slk8jARr85hEb5AOY6JfUNWAzy/fZdhl6iXL7P8wW6cpfSYqAoS3asA nBPBpi5lHfTMepv8oyDP/jE6WQGvOMW+fBKLYIvkhg6bpMmQFE9T0aIcsLENIsWpnjo9P9 g717cV7tCm3/H0DguGSkAHjGOALiwf09KGmNyrg8QnqoHqTd0eZ9YmSjyDaOc8ZXAJ8VHx UUCtLTOzCWs4GFcfpYQtCpESuR7iAF8WkcuyGIYiIK4sbLtWyTivUyOyVMmcPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1741265392; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=dLaIknUZuj/KCLiPiTTRM3qS8ZKHzxoADjrgIqIiM1M=; b=ZgR66AlWYExuBR2VrVxFAR91MjUPM5Y1NC3v7SyFv0xiv4qvI19Qypbukp5Oi3SDaSFAaY NC8bdAmSt3x0I3oUvGiuWIw79HbehhvxH5U5bKGIqYyGWo/350ZPDH+rVS/3O7oLfdayop h+ExWZm6hUFKq0MnfuV+S4b6BpqxUkMIwG4EBXSsJmFnliIYFdp5AY0sWRI71KA8/BeOl0 Av26X4RwZJ78bHuFXMGKHoq3UejPeE0rJlIzlkSCQiAFyktj4iqoq2Vkwoh3IE2zLtzIvg Br0nu40jNa+h80+C0wIHYvfjAN+HWQGKXUODbjAZjFC+hOZ0YVo9nROWUB0Yvg== ARC-Authentication-Results: i=1; rspamd-5c7b96f5b9-pm8hl; auth=pass smtp.auth=yszpovajlk smtp.mailfrom=juris@glaive.pro X-Sender-Id: yszpovajlk|x-authuser|juris@glaive.pro X-MC-Relay: Neutral X-MailChannels-SenderId: yszpovajlk|x-authuser|juris@glaive.pro X-MailChannels-Auth-Id: yszpovajlk X-Ruddy-Trail: 582907f455cf729f_1741265392600_179538396 X-MC-Loop-Signature: 1741265392599:1320524755 X-MC-Ingress-Time: 1741265392599 Received: from server42.areait.lv (server42.areait.lv [212.7.207.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384) by 100.108.253.94 (trex/7.0.2); Thu, 06 Mar 2025 12:49:52 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=glaive.pro; s=default; h=Content-Transfer-Encoding:Content-Type:Message-ID:References: In-Reply-To:Subject:Cc:To:From:Date:MIME-Version:Sender:Reply-To: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=dLaIknUZuj/KCLiPiTTRM3qS8ZKHzxoADjrgIqIiM1M=; b=gxOOdxRaeSCnisVcBgYJhuBFAK fSJlWoWn0moEu59VYgW6WU75EEQtvHrromq4H1te7/rMFO6tSSm0UO2YibGTQ9KuSizHyTfgegVf8 SMXyz4CLsLlahFXqnR8BHkMyGmQzWa1DXPkke0EjeHGe1XPXlNAh8OW9+gHoUqO+ZAWFi4UjFpdy5 qDFIvL9c/GD9SUFcy/Macz7VL5h7BOPafvWMSvZQHwe2V7i7DO5WPUEI6XFaBtMuvnVFnIALwabTW sdnntoatRPHPksvdxSRz1ibfCOD4vLhdEX+wrNXA4ybs/ENnlsX6+vAXsNzu9fSjd5Rywj0klOknu A5T/qqxA==; Received: from [::1] (port=37596 helo=glaive.pro) by server42.areait.lv with esmtpa (Exim 4.96.2) (envelope-from ) id 1tqAfd-008EzQ-27; Thu, 06 Mar 2025 14:49:49 +0200 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Date: Thu, 06 Mar 2025 14:49:49 +0200 To: =?UTF-8?Q?Tim_D=C3=BCsterhus?= Cc: internals@lists.php.net Subject: Re: [PHP-DEV] RFC: short and inner classes In-Reply-To: References: <076001db8e34$41cab990$c5602cb0$@glaive.pro> User-Agent: Roundcube Webmail/1.4.8 Message-ID: <4112e6ee96693aa544346a8773085a4f@glaive.pro> X-Sender: juris@glaive.pro Organization: SIA "Glaive.pro" Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-AuthUser: juris@glaive.pro From: juris@glaive.pro (Juris Evertovskis) On 2025-03-06 10:04, Tim Düsterhus wrote: > - I don't understand the use of `private` properties. Given that the > classes cannot have methods, they would be inaccessible, no? I think the RFC was a bit unclear on this. Short classes can have methods. The short syntax just doesn't provide the ability to define them whilst defining the class. But otherwise they are indistinguishable from normal classes and they can have methods by inheriting them or by using traits. BR, Juris