Re: RFC: Marking return values as important (#[\NoDiscard])

From: Date: Wed, 29 Jan 2025 19:31:38 +0000
Subject: Re: RFC: Marking return values as important (#[\NoDiscard])
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-126233@lists.php.net to get a copy of this message
On Wed, Jan 29, 2025, at 16:12, Tim Düsterhus wrote: > Hi > > Volker and I would like to start discussion on our RFC to allow "Marking > return values as important (#[\NoDiscard])". > > Please find the following resources for your reference: > > - RFC: > https://wiki.php.net/rfc/marking_return_value_as_important > - Implementation: https://github.com/php/php-src/pull/17599 > > Best regards > Tim Düsterhus > Hi Tim, This looks promising! Why do we need the (void) cast? Wouldn't "@" work and avoid a BC issue? — Rob

« previous php.internals (#126233) next »