Re: [RFC] switch expression

From: Date: Sun, 29 Mar 2020 22:06:51 +0000
Subject: Re: [RFC] switch expression
References: 1 2 3 4 5 6 7 8 9  Groups: php.internals 
Request: Send a blank email to internals+get-109435@lists.php.net to get a copy of this message
On Sun, 29 Mar 2020 at 23:54, Stanislav Malyshev <smalyshev@gmail.com> wrote: > Hi! > > > My recommendation would be to just borrow Rust's keyword: > > > > $result = match ($var) { > > $expression => $expression; > > $expression => $expression; > > $expression => $expression; > > default => $expression; > > } > > Yes, this would be much better idea. > > -- > Stas Malyshev > smalyshev@gmail.com > Agreed George P. Banyard

« previous php.internals (#109435) next »