Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:126234 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 8051A1A00BC for ; Wed, 29 Jan 2025 19:50:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1738180058; bh=BzoScesj8uPd9w07Wf1NwQ+/u9KSyMR8fVGy1x+AHd8=; h=Date:Subject:To:References:From:In-Reply-To:From; b=kh8SVEgtNAnNhQ2UQJO1piJearQ+Lm4X51j2zNJsTdDolo1M7LRr+kySgzq6gDySo 6SngviAdfrbUHNwoDV06l8uB5oJJ1PsZVeNNWBvsp1HPkZ2AMzWsHb87zbpzrcMvyM de/25bxFo40KB1XaspTtdfU7V7bVtZYqJwCIQB3Qa3UYZyKmLaU3DQHta3tJQTjZuj MOajAEnA0JdItoRLST1S9zVaklk6iZqJtDrdjECHSvsZv2/8nCh/Cm5KKPhX7CHFVy 3bjUMboyKFCDfniYiCltmwfWNISIcrC9Enkp80obLecgJ7ToXNOx3p4ND4W5lmnibu lp0+DQoo2dO2Q== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 48ABC180084 for ; Wed, 29 Jan 2025 19:47:37 +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 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 ; Wed, 29 Jan 2025 19:47:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bastelstu.be; s=mail20171119; t=1738180223; bh=pbCzsmcz79CG7J65OzcKmHdww4HL6jrDGQc/c9LwUV0=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type:from:to:cc:subject:message-id; b=fQOhYy1/48pZwHfc72ve9B5AiQMnvpgV2PO8ePfd86a5RJSVRdRMHa9ldAVQSWz0M YviPyeEnbXrPsjlj5vY75ozAZHXAj3YIMQa29T0cpW0sJtcbqi0nl2Ka2LVfSQjGDz v51Z/bxBQMrEa7Ajfh4cBdrQUlPKLXhJB7nuxXz9vu7HFuWb2OXOVr1NleBFSGtPpn qZEgB5DvvfRKczCtlfWVlzaUoV0ptwPaoW85ydmsiCxU8Elh14iBk2VzxvrdYp7XqJ ouPg0w5jc8fHHJabuzEgBK5SR9e8EKvHWKaNtSMZLrpWSwD+BvMMnx5tMk8Yt7bDue Jr7Gb/WEQZh2g== Message-ID: <3f170549-cfd6-441e-b892-cf51d726dbe8@bastelstu.be> Date: Wed, 29 Jan 2025 20:50:19 +0100 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Subject: Re: [PHP-DEV] RFC: Marking return values as important (#[\NoDiscard]) To: Rob Landers , Volker Dusch , 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 1/29/25 20:31, Rob Landers wrote: > This looks promising! > > Why do we need the (void) cast? Wouldn't "@" work and avoid a BC issue? The `@` operator also suppresses any other warning or notice within the call chain. That is likely undesirable because it might hide issues one is interested in. See this example (https://3v4l.org/NDtR7):