Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:126010 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 821BC1A00BD for ; Wed, 20 Nov 2024 19:56:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1732132744; bh=h171JIwkMlAvWdpG++QuOcrdEbeYveEX+TvQS83S3ZQ=; h=Date:From:To:Subject:In-Reply-To:References:From; b=Puvz5dovnd24O8DyMRwfRtYxJvWfo3r7YQwSihRb5FzBVZqTwNoYdUcH7w+EFYIjQ jhTO9lHsE10psoXxMrI2UamT0o5n/LSvqb5A667Zv9tYXW5H1RqGiwLzkV1ULfGGap rZ2DbazkRqSKCdTCbKaqXrfO6+qa9MtDWuaptxYxpywqTBO6DJEl74dVv/n9B9sa5C Ws41ejZoakb/afsI+yt0tUVWj6vT1j/tdI/koU/soS2B82jpuEfupQZRHBckXWHoxY ZMxFvXJ5GeUvOIR2VPD+WgDd5Ce7bE027/o5lHzkupq+UPC7szu/btIlz0ChHnoMK9 Yiq1J3rQ7J0Wg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 1ED691805B4 for ; Wed, 20 Nov 2024 19:59:04 +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:59:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1732132583; bh=h171JIwkMlAvWdpG++QuOcrdEbeYveEX+TvQS83S3ZQ=; h=Date:From:To:Subject:In-Reply-To:References:From; b=Mak51AS4h2VdR049MTiULZosr4o/wjBGkHrlIAUeRQQ3Je32rA/gDBsBOQ8euqoB7 EAIlzKNpogNan47bh8hfQHbznsO1x4gXFOgHnTBu5+G11e+l+IqvNcc0cvrvbO70X0 v6aQRBCUOtvoJuq8kFdaWeEPzP18m59Mg2rI/hH6XF9FXeO7Dnd5yigAr1aYmX4T/d TWDAiaCik4LUW+TmeIdYY1l3F7t/Jf7MSLNhZHlZOeU2JDrNGX2bkWgixhX6xCcb4j VVqu2fLirpRF7r2LZ/Qexlfnd5cdng7Fi87xturMq9OoMZKEpyYre3UUFQO8uYO1Bz ATYTwb5LNIegA== Received: from [127.0.0.1] (unknown [148.252.147.240]) by xdebug.org (Postfix) with ESMTPSA id DDC4610C0B0; Wed, 20 Nov 2024 19:56:22 +0000 (GMT) Date: Wed, 20 Nov 2024 20:56:21 +0100 To: internals@lists.php.net, Theodore Brown , "internals@lists.php.net" , Kamil Tekiela Subject: Re: [PHP-DEV] Deprecate alternate switch case syntax? User-Agent: K-9 Mail for Android In-Reply-To: References: <943CFFC1-B0F8-4326-BF2E-138BC1E48DB7@php.net> Message-ID: <7CFDC081-C5B3-4BCA-B586-E1C71B3A2412@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 20:24:32 CET, Theodore Brown = wrote: >On Wed, Nov=2E 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 th= is? >>>> >>>> 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 i= nterleaved 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 don't think it's atrocious, and quite a bit nicer than the "new" syntax= =2E >> >> It's also not a decades old choice (and not even by me)=2E > >Hi Derick, > >I suppose whether or not that approach is ugly is somewhat subjective=2E = Do the xdebug=2Eorg templates using this style also rely on case statements= being followed by a semicolon instead of a colon? > >Sincerely, >Theodore Even if it did, it's not really relevant for the discussion=2E I was mentioning this because removing the syntax would break code for no = real gain=2E Cheers Derick