Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:127043 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 8493F1A00BC for ; Fri, 4 Apr 2025 11:31:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1743766137; bh=L4gi66beXyAUGIGatDRb6lt29lkNibgC6ZjMqXqtVJw=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=EVuDHqq9Fs+LWhYVAtq5BJzFitSQU5UKgk7mUUHV2qOUmPcRqF7GL8Gup9AkxMQEJ sgWJZx8yaMjiClSAOlQTSenD4ouhfsH8McIGJBzMU6Hs2AJ78N5BaA15t0MjF28nQR Q3QBaZ7fEk1ie1BhGnHgvqU74WZ4pyOx/Bo0sUaBLrH6tDfyb5HpUVMlBvfxnBv3BM RhWoMHJsAc8gQhsZcqCeeYOuI7b+J1a1hG4GTB1BwaUz1wf/1fHnZH8rroaIudR9AG IwG9aGCP5nrV4CjjwCiV7njCx5paYu/XUS758gzTgi79XvmJFBjMzXmZpwhDJdLUIP 2yUC+XxX0lj4w== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id CC8A4180084 for ; Fri, 4 Apr 2025 11:28:56 +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.2 required=5.0 tests=BAYES_20,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 ; Fri, 4 Apr 2025 11:28:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bastelstu.be; s=mail20171119; t=1743766281; bh=16D3ffoEjxZ3ZL44tKUMqdkou3uYaDjYpRwvhK2SJjw=; h=MIME-Version:Date:From:To:Cc:Subject:In-Reply-To:References: Message-ID:Content-Type:from:to:cc:subject:message-id; b=X5RN3tXsUqIOCgoWuW+bBR6ixEIMS8NVwlGlGPshO0nJDDk771SupqYV/lGsim0QV MWhRG+YN9R+OoErIq78DEsge5eVuOOrf7iMquSTr/QuqMvdNXI/tgGkCcc1l8gWpOz dLLIXV0jjkcViiBCilZvOO2Ily7jICdOhr64yLWieuuzIvCPLhVFvMyKRdkhRSjrN/ tjprtTWxHYsM6hAiD0ZnGCcl8tEJArRXdWkl8+aEuLY107a4QHl7RzyeDqEdSKPHoH +LQwFCDZWw5qITf8duerXumPx7EJ5UHIEKJ8z5EbIBWo24NlP8b3ifVtvx6HzspUbB cEO4n+rDrN0qg== Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Date: Fri, 04 Apr 2025 13:31:21 +0200 To: Yakov Lipkovich Cc: internals@lists.php.net Subject: Re: [PHP-DEV] Uniform Function Call Syntax In-Reply-To: References: Message-ID: <0fb0015c31156b0da702cce8a79f1a90@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-04-04 03:52, schrieb Yakov Lipkovich: > One thing I'm unsure of is what happens if an imported static function > has the same name as a member function. Larry already linked to the Pipe-Operator thread, which tries to solve something similar. Nevertheless, I'd like to note that resolving this ambiguity between “method” and “free-standing function” is the most important part to solve *before* proposing UFCS and not just a small detail. Without that being resolved (or least without having an idea how to solve it), the UFCS proposal is just a “wishlist” entry and discussing wishlist entries without having an idea of how they are supposed work in practice is not particularly productive discourse. It's similar with generics, unless someone proposes a solution, just repeatedly stating that “PHP needs generics” is not bringing generics to the language. Personally I have no idea how resolving the ambiguity would work, without making the uniform function call syntax non-uniform in practice. Best regards Tim Düsterhus