Re: [RFC] noreturn type
From: Marco Pivetta Date: Fri, 19 Mar 2021 14:45:12 +0000 Subject: Re: [RFC] noreturn type References: 1 2 Groups: php.internals Request: Send a blank email to internals+get-113617@lists.php.net to get a copy of this message
Hey Nikita, On Fri, Mar 19, 2021, 14:35 Nikita Popov <nikita.ppv@gmail.com> wrote: > > Is it allowed to declare a noreturn function that returns by reference? > > function &foo(): noreturn {} > Given thatnoreturnmeans it should throw, loop forever or exit, how would a by-ref usage be applied/useful? Or is it a hint at a missing test? >
Thread (37 messages)
| « previous | php.internals (#113617) | next » |
|---|