Re: Return When

From: Date: Wed, 04 Dec 2024 19:25:55 +0000
Subject: Re: Return When
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-126102@lists.php.net to get a copy of this message
Great, thanks I went through RFC and discussions and there's new findings with throw: 1. *throw when* condition, new Exception('Massage!!!'); - throw when $success, new Exception('I am here'); 2. *return when* condition, 'return value'; - return when $success, $result; - return when ($result = Somefunc() !== false), $result; How can we reopen a discussion on these two topics? Regards Volodymyr Volynets On Tue, Nov 26, 2024 at 1:17 PM Juris Evertovskis <juris@glaive.pro> wrote: > Here’s the previous RFC: > https://wiki.php.net/rfc/conditional_break_continue_return > > > > And the previous discussion: > https://externals.io/message/110107 >

« previous php.internals (#126102) next »