Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:126384 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 E7EB01A00BC for ; Wed, 12 Feb 2025 21:44:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1739396518; bh=i6QO8Vtu3N7A8vjPV/YfBh3ChDyZFx8N/EzBQgwrv4g=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=JtpvwDWzR5vF7qRzDRWnUC02XGUIrEQAHh/jod94Cm2N+ZycVlt5lOoR7F7NuNYhH 14WHs4Djpo9VQvy2dccSGfjPTzMBC05qeEZrn8tw7oJbG1MAp8lNvjvMVO3rjZxuuM 4SXTaYcyQBFXCAj0gmSET8u+hN+DZIkmzMx5meFLa736ttBEYyg699RM0ivb1JLvnt jhkgcSg2jbpW9PTD/wfP7Y2QjxUSWvEXGpbEN2Po8WfxokGuaAjf9/haqscifxQsf0 XWuBW0xzFcULNC1KpFY0G8XiBZYHAW32vD6FkYfyi8GW7DdK+S/wR9gbSWhswbKUUQ O7+I1amYORTjg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id C7E2F180068 for ; Wed, 12 Feb 2025 21:41:57 +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,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-pj1-f43.google.com (mail-pj1-f43.google.com [209.85.216.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 ; Wed, 12 Feb 2025 21:41:54 +0000 (UTC) Received: by mail-pj1-f43.google.com with SMTP id 98e67ed59e1d1-2fa8ada6662so459965a91.1 for ; Wed, 12 Feb 2025 13:44:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1739396676; x=1740001476; darn=lists.php.net; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=i6QO8Vtu3N7A8vjPV/YfBh3ChDyZFx8N/EzBQgwrv4g=; b=CNQ/DKKhFzhtFvM/dfE3wfP+r/31uWPFvThUJyBnQ41rNQbw1VfCwwQZddZFFz/0v2 7E0qQGnSbcbPk4lrjhS7DJ6NW0f8fiEihKe4oXAOjffWEOeZdccF4Q/bCJMya5e1Sej6 /2T3+wHn8aL1CXSPifHjIc3H0B1DFUMHIDTVGqvLMnXCmcMk5c6/s3VVm/o9yXrcv9lz aQEuUymO2e82MwHnKzv3H2ihP39KbktWwiPAlopCrUtdsGCbwRJMuX/rX9lJjnUwVCVv s4Dcbrt4p0xVuVWvncmbDjVBATqnDzr92AabT/Zz9Oz878zulAE6G3szhjedVbnSAGsg nm0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739396676; x=1740001476; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=i6QO8Vtu3N7A8vjPV/YfBh3ChDyZFx8N/EzBQgwrv4g=; b=F4oXo4z2CpgcWeAEIs0nRasivrqm0ugp+ESomDvwdgjYx/GZELetRklX9CN8LajvHb bGQ/Fp3zbv1qinlMQslLGDNl1yHqIeF2t1KlHrhoVCsQk1L3LEmPsA++4mLM7vY3NdV0 TXWaAOtMKGaR+vmsldB71054GBYqvFIN741JBVLR9jK8bya6gvSZJZRpxoWC0gB9Js9R GTa08csKnRP/z9ap7CYkJ1tlFKlxfZLEFbeXoaAAqYZcuWBLgMVIfXsNc3R2ZP7g0/Xo lg2Fvmt227Zy4saHHtB4zxfNyotMpCWN6ZZn7HY25+LR7a7hKrXk1b6eYAVez2+nV+ns aJhQ== X-Forwarded-Encrypted: i=1; AJvYcCUnpi8vYV2bjbE4qyly+zPKp0AZWPkCtXLpUYet7y2ewCdc9l/ev3XkGDNmHpNPU8PfHI4SKxyJLYc=@lists.php.net X-Gm-Message-State: AOJu0YwvtyQTh/i2KUlDNUYRNG3FAu7LEBnpIgQUA04V7bWVOKpSbEDY Z0cqaYIF7lqZDWwPjGRWE0UkvtledCRxdlFejctn8SyegP2g48uUrCjWo5i6P05QooKq+HMGZfk zdrH/9aR8Mx5WA5GCXhnQQhZ24t8= X-Gm-Gg: ASbGnctg0ocs6YyeVEGc922u5tzTVJXdrhTqNN/GqmER0e15tdWo4c03UnrVee0NidR QOZqU4bAsdeSQxKmhL+gzS0toYgL5giTMzjkPdYds4pRPTl/Z8OgmNxqEqRrSPmVYWr1knStvvQ == X-Google-Smtp-Source: AGHT+IGarORbm4LVJF1a9MYw1pMd/Kbt1U2Ge1xWCRYuiZhpVThUnHedYjxgCKWhULKmHcuvPxy9bsPLPOWmfMlSew8= X-Received: by 2002:a17:90b:540f:b0:2fa:2252:f438 with SMTP id 98e67ed59e1d1-2fbf5c711f3mr7383856a91.30.1739396676452; Wed, 12 Feb 2025 13:44:36 -0800 (PST) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 12 Feb 2025 22:44:24 +0100 X-Gm-Features: AWEUYZlc7_bD2BsDMRhOYWI5I75t726Gy1Lft-b3IO8qVMhJ7MOZAALnwZzTjjQ Message-ID: Subject: Re: [PHP-DEV] RFC: Marking return values as important (#[\NoDiscard]) To: =?UTF-8?Q?Tim_D=C3=BCsterhus?= Cc: Volker Dusch , php internals Content-Type: multipart/alternative; boundary="000000000000060776062df8d96a" From: jorg.sowa@gmail.com (Jorg Sowa) --000000000000060776062df8d96a Content-Type: text/plain; charset="UTF-8" I must agree with Kamil. I don't see practical benefits of this feature that would surpass the implications it has for the language. We already have static analysis handling such cases and it can be extended even to non-pure functions. Moreover, syntax (void) adds additional complexity to beginners' understanding of the typing system. The second option with $_ is BC on the other hand, so both options are unsatisfying. And honestly, I don't have good ideas for it. Kind regards, Jorg Sowa --000000000000060776062df8d96a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I must agree with Kamil. I don't see practic= al benefits of this feature that would surpass the implications it has for = the language. We already have static analysis handling such cases and it ca= n be extended even to non-pure functions. Moreover, syntax (void) adds addi= tional complexity to beginners' understanding of the typing system. The= second option with $_ is BC on the other hand, so both options are unsatis= fying. And honestly, I don't have good ideas for it.

Kind = regards,
Jorg Sowa
--000000000000060776062df8d96a--