Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:126007 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id C1E8D1A00BD for ; Wed, 20 Nov 2024 19:03:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1732129573; bh=VjsgwT45MMtN2RR6Y5SfA/j5vCf+B4W3DgK230Vm/E8=; h=Date:From:To:CC:Subject:In-Reply-To:References:From; b=KySc1xoevqO6T1FLurRSw+HlVFdFlGnOkf59vxmpQFRVGdduaic4cVo5cbr1B/WvV WZJlJt9xqkkBCbTiI/oP3csCBBAdj6AVYZLEexZKysC2ljdYOidtQ0Sy0BlP4MYYYL 0v7q6TFCaurRzWArT3+Vzx5kAVc/5bHfjYULrkzr2YNgSTmsr4hJZ4R/iBtqKCgq32 etovHsPhPLOQcTN0CMRlBYqNR9P4EnpuyO9oqY+x1qo9MQOTTLmItR23jsNpoeHOlR 7d3uYBL9DQPLAC8dHx6zZ11Y9r63Aq7Ux2G0GQBN5ETBHOdieHneOwQV/m2Xhv1kmM DNDLVhGDQ9Xeg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 9F07C180566 for ; Wed, 20 Nov 2024 19:06:12 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: *** X-Spam-Status: No, score=3.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,SPF_HELO_PASS, SPF_SOFTFAIL autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from xdebug.org (xdebug.org [82.113.146.227]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Wed, 20 Nov 2024 19:06:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1732129411; bh=VjsgwT45MMtN2RR6Y5SfA/j5vCf+B4W3DgK230Vm/E8=; h=Date:From:To:CC:Subject:In-Reply-To:References:From; b=U26LouzpKo/ftFbO1q5z+vZJxDaIxp9rQGtpnMnUiNmcgxnV3o5USL5HhHKU4MiXv gIpM/Fdarro5TaKT3pnijOcmCsKuYiZ6GHuemj/0DPrg1hkSEhggTagWIrJd5/+YS0 631abIKuSxsEAwu2gPCZnJO/00gksdhV3+C+ipXiDTuhYiEy/WqM20ZfnkuPSX43kt AwL9Viqj3M544cZE+q6MSS32I2ulvhzwzRXEonF1SkiXogzuBHjgrvve7zTKU6DRat gJgvf+HgOciNfiuG/gKGhs3eFsz+3A/fwjf6BHU+NC/GTmbuwsdMrx7PQ4UxJbgT1B zYOhtTSUVKpgw== Received: from [127.0.0.1] (unknown [148.252.147.240]) by xdebug.org (Postfix) with ESMTPSA id 1EAAE10C0B0; Wed, 20 Nov 2024 19:03:31 +0000 (GMT) Date: Wed, 20 Nov 2024 20:03:29 +0100 To: internals@lists.php.net, Theodore Brown , Kamil Tekiela CC: internals Subject: Re: [PHP-DEV] Deprecate alternate switch case syntax? User-Agent: K-9 Mail for Android In-Reply-To: References: Message-ID: <943CFFC1-B0F8-4326-BF2E-138BC1E48DB7@php.net> Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: derick@php.net (Derick Rethans) 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= ? >>=20 >> 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=2E >> Was there ever any other reason? > >I hope no one writes code like that where separate tags are inte= rleaved around each switch, case, break, and endswitch statement=2E That's = atrocious=2E=2E=2E All my PHP based templates for the xdebug=2Eorg site use this style=2E I d= on't think it's atrocious, and quite a bit nicer than the "new" syntax=2E= =20 It's also not a decades old choice (and not even by me)=2E=20 cheers=20 Derick=20