Re: Deprecate alternate switch case syntax?

From: Date: Wed, 20 Nov 2024 17:38:42 +0000
Subject: Re: Deprecate alternate switch case syntax?
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-126003@lists.php.net to get a copy of this message
On Wed, Nov 20, 2024, at 10:44 AM, Claude Pache wrote: >> Le 20 nov. 2024 à 15:45, Theodore Brown <theodorejb@outlook.com> a écrit : >> >> Hello Internals, >> >> I recently found out (after 15 years of being a PHP developer) that PHP allows using a >> semicolon rather than a colon after case statements. [1] I.e.: >> >> > > Hi, > > For reference, previous discussion on the subject: > > https://externals.io/message/109350 > > —Claude Interesting history! Chesterton's Fence gate achieved. :-) Unless it's causing parser issues somewhere I don't think we *need* to address it. Maybe just document that one really shouldn't use it, and it's only there for legacy reasons. That said, if someone wants to go to the work of removing it, I'd probably support it. --Larry Garfield

« previous php.internals (#126003) next »