Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:126729 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 5D51E1A00BC for ; Thu, 13 Mar 2025 11:01:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1741863552; bh=jB4vU5ukF7j1IGrk5k72/vA7xOWCsKcN4DCnOVNFn3c=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=B63F0vgifwKka3JPe5E9jH1wO+n886vLY1RBiqyPUY9V1mBcMrCKLOho989XXbbCD LI1K2ewUuHZyBjDT3qFzqdjU9N/g8bnJaHFEsRsEirTZTRC/QZ0dCobqbGldNcG7w3 tH6PUfmzbixclrlM6UaK2kesFdTuqBJMROe0j3CoPko1zAnd0F3Y5yHiuU1OylZN8G FG5hMO+/HwKd7wxcd5H5GOqqhzBHwEDmj1Ixk/OO3wVYz006nqlByT/SpT/1y9d2e/ Vy0ME4/qi/ZNdTNars/YjUla9XDrCejSO+TYS2jukzd1mUXtcAXYJG4Etp/6iHNcoO oUPozZfrbYzGw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id E15BF180068 for ; Thu, 13 Mar 2025 10:59:11 +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.7 required=5.0 tests=BAYES_05,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No 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 ; Thu, 13 Mar 2025 10:59:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bastelstu.be; s=mail20171119; t=1741863703; bh=PKsoxcXzKftYybefqK8WsVG5U8Kqe3uKdJT8pNyCi44=; h=MIME-Version:Date:From:To:Cc:Subject:In-Reply-To:References: Message-ID:Content-Type:from:to:cc:subject:message-id; b=MLYGfOPbNUxv4iAQ9kzRGJUyQRoroWWZjmvQV6yk9aB4vvF+a5xYEYgzzX37GrNw5 R/MQxx4mGpvVi/QhR9+58t7M8BcaEuRdGuN3CRTe5oov3ALY1cA7/IK3bd2HFhF1hW EN/YwwamaB6vkMBJmZDGY5SZuuaKDhpWBtVNh0fosjF9UB0tETzVVKMhxi5v/cs4A1 vVfUPC2LIPJ/+2mzuxlSGdNVUWHd5fpx55GqimgrtqqbzLPtOSNTXwuYHBWRL341Vx X8UPdsva7d1Omm7JeuMdycCqTYN5++SMZYm9wSjJ3DJHwPVofTqj4Bdza7iCms+2xg ACOcktg0GtnPg== Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Date: Thu, 13 Mar 2025 12:01:42 +0100 To: Rob Landers Cc: internals@lists.php.net Subject: Re: [PHP-DEV] Re: RFC: short and inner classes In-Reply-To: <2935d0e2-ddc4-447c-ab37-c9b7337b8b60@app.fastmail.com> References: <2935d0e2-ddc4-447c-ab37-c9b7337b8b60@app.fastmail.com> Message-ID: <0d94bf183543ee9948fcd31337198438@bastelstu.be> 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 Am 2025-03-12 11:10, schrieb Rob Landers: > - Accessing inner classes is done via a new token: ":>" instead of > "::". I don't particularly like that. It is “invented syntax” and I don't think that inner classes are sufficiently valuable to dedicate an entire operator to them that could serve a more useful purpose in the future. It also got 4 negative points in the rating back when the namespace separator was decided: https://wiki.php.net/rfc/namespaceseparator Would `\\` (i.e. two backslashes) work? The outer class for inner classes effectively act as a namespace, so it makes sense to me to use syntax that is similar to namespaces. I'll look into the rest when there is a new implementation, since I assume some details will still be clarified and fixed as part of implementing the proposal. Best regards Tim Düsterhus