On Wed, Nov. 20, 2024 at 13:03 Derick Rethans wrote:

> On 20 November 2024 19:26:12 CET, Theodore Brown wrote:
>> On Wed, Nov 20, 2024 at 09:23 Kamil Tekiela wrote:
>>
>>> Do you know why the two exist? Was there any historical reason for this?
>>>
>>> From what cmb69 said[1], it seems like it may exist because of the
>>> implicit semicolon in ?>, and after I tested it, it seems to be true.
>>> Was there ever any other reason?
>>
>> I hope no one writes code like that where separate <?php ?> tags are 
>> interleaved around each switch, case, break, and endswitch statement. That's 
>> atrocious...
>
> All my PHP based templates for the xdebug.org site use this style. I don't 
> think it's atrocious, and quite a bit nicer than the "new" syntax.
>
> It's also not a decades old choice (and not even by me).

Hi Derick,

I suppose whether or not that approach is ugly is somewhat subjective. Do the 
xdebug.org templates using this style also rely on case statements being 
followed by a semicolon instead of a colon?

Sincerely,
Theodore

Reply via email to