Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:131070 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 lists.php.net (Postfix) with ESMTPS id A42851A00BC for ; Sun, 31 May 2026 08:39:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1780216746; bh=fpea/4xxL2svKLlyPYA7Ffyb5QKYkdpWnHLCPgXnaN0=; h=Date:From:To:Subject:In-Reply-To:References:From; b=aBVOOqxZznP3UhYa04+xPTYywqxKtzprnhiNbxE896L0YU+D4Pgcfg1RNY9LjdBGy X/7XDV/It9xaiTZV85Jc/aHFEToWrESjSugVmGmjpdkFXDu49ZMADgajwoyQgs08SM HmSHWSG72RaiqnqWSLz1Tmm60ZWQQ6xfzLPRLQQVAAgWBw5yC8F0RUQfkTIajuIj5c mYrqgRQqDdIHHl3avCgp1yduv2W/rD6FrgPQxRi9qbs8EycD7NH0Kq1K4hAuSiby59 +CL4M4YJ9HKosw1rt4UZA6AfU054E/ts+dpHPqCix3IbLyVCUV7He+Irn9cBQ44J4h DhHge50gkdWaw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 3FEF2180048 for ; Sun, 31 May 2026 08:39:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from fout-a2-smtp.messagingengine.com (fout-a2-smtp.messagingengine.com [103.168.172.145]) (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 ; Sun, 31 May 2026 08:39:04 +0000 (UTC) Received: from phl-compute-06.internal (phl-compute-06.internal [10.202.2.46]) by mailfout.phl.internal (Postfix) with ESMTP id 70533EC06D2 for ; Sun, 31 May 2026 04:38:59 -0400 (EDT) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-06.internal (MEProxy); Sun, 31 May 2026 04:38:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rwec.co.uk; h=cc :content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1780216739; x=1780303139; bh=YBPIz/xEWQj+VJmdIySQUO4FfW4skWPLYOwTEE1CJnQ=; b= BcQWxkJCRqnYlthxmnDI4Hu6F6PTZgK4YBl1lAQNJy6G+QM71AopXEWx6FJztvPi h+W+XBDDERq6SvAdyWogHgVOtCoh26rKJZKiQlpgNsq0YUFts+fvHqI3usEUJ6RW w/VKdpFsgrOsuJSoIjTJ4I11leP7btn5GXMhU3pwT6xd3rstJ8hPNg2aQ9+uOPV8 e2L52q8rnybvC1ekSS7CZP4urCGJLrQnU6SOuHQFe5ztuU9n/KGI7q8OPPVf/67n AtiTPzoJ9IqBKDAO5a/TK7DODB7UOWHJeaPbmc0mZ5rd13XeKF95Hgk4oIBzaOPB KwUGF/Q0VXtHZ9OHC9tv6A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1780216739; x=1780303139; bh=Y BPIz/xEWQj+VJmdIySQUO4FfW4skWPLYOwTEE1CJnQ=; b=rjRBlFGzFj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ME-Proxy: Feedback-ID: id5114917:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Sun, 31 May 2026 04:38:58 -0400 (EDT) Date: Sun, 31 May 2026 09:38:56 +0100 To: internals@lists.php.net Subject: Re: [PHP-DEV] [Pre-RFC] Pure-code source files via .phpc extension User-Agent: K-9 Mail for Android In-Reply-To: References: <9E95EA03-B86A-D248-A980-B1E838F94C13@hxcore.ol> <11B6D9B0-2555-4FC4-B540-71680315589F@gmail.com> Message-ID: <61D94EF8-9D98-4467-878F-0427CA6DD55F@rwec.co.uk> Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: imsop.php@rwec.co.uk ("Rowan Tommins [IMSoP]") On 29 May 2026 17:26:26 BST, Michael Morris wrote: >This honestly would need to be part of a larger syntax cleanup effort for >the benefit of both the engine and the users=2E The largest single wart i= n >PHP syntax is the having three scope operators ( \, ->, :: ) where its >sister languages get by with only one ( =2E ) which PHP uses for a differ= ent >operation=2E But I believe that runs into similar problems as the reason= why >PHP requires $ to lead all variables, it has to do with how the engine >handles these symbols=2E I suspect that some of these problems are >intractable and even if they can be solved the performance hit in solving >them might be severe=2E If that isn't the case (or isn't the case anymore= ) >then those structures too would be worth review=2E Hendrik's original proposal seems pointless but mostly harmless=2E I'd pro= bably vote against because it's just unnecessary complexity=2E=20 A mode that lets you write PHP code with all the syntax spelled with diffe= rent symbols sounds about as practical as the module which lets you write P= erl code using grammatically correct Latin: https://metacpan=2Eorg/dist/Lin= gua-Romana-Perligata/view/lib/Lingua/Romana/Perligata=2Epm Every time you wanted to use an example from online, or just move some cod= e from one file to another, you'd have to use a tool to translate it from "= traditional PHP" to "all-new looksmaxxed PHP"=2E=20 A "strict mode" that turns off certain features has been proposed many tim= es over the years, and always rejected in favour of moving the language in = a consistent direction=2E If you just want to forbid those features in your own programs, use a stat= ic analyser=2E If you want to remove their complexity from the language, a = "strict mode" won't help=2E=20 Rowan Tommins [IMSoP]