Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:123982 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 A9C911A009C for ; Fri, 28 Jun 2024 06:53:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1719557679; bh=u7Jfl62T72h+xMXthyJU6q5nVk2Q3l1Po/pDqGMTN08=; h=Date:From:To:Subject:In-Reply-To:References:From; b=gB1fpUfA1+LcsbiTBqrUA4KwQttGqXEVU0db3aeQ/UzwLMwv/Wa1EN9XqBqyBinX4 qDp1zKsWym4FghrY+5mor/mQaAIQ8hxfeFqZlkiTW29L+CkSCyYggX+09Gwpy0b7AQ +qOXi7QggFOELxODY5Ya4ZhZpyLxKk25XJNsIWesiJqA5QXXyAWINqQ2jzIVOmLcLh WsiAd1wzZyvEKYMFZsP7ijp+xAQz8NllHXuWby2krMQ5XQttw6kQBon3nVMFttAjtm ETzj7M2AuWg4U9O/0hdoI3cyZi7DjPV7I+TI6+zItvhtLZGGliOTakEeBRJWqK+h19 wnZtnY6oB9Yrw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id B4D75180056 for ; Fri, 28 Jun 2024 06:54:38 +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=-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_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from fout2-smtp.messagingengine.com (fout2-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 ; Fri, 28 Jun 2024 06:54:37 +0000 (UTC) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailfout.nyi.internal (Postfix) with ESMTP id D6FEA1380644 for ; Fri, 28 Jun 2024 02:53:18 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Fri, 28 Jun 2024 02:53:18 -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=fm2; t=1719557598; x=1719643998; bh=u7Jfl62T72h+xMXthyJU6q5nVk2Q3l1Po/pDqGMTN08=; b= uWDysLLXY/aC4r93qwi4SaPAjd1g9yw3DKXzkApX4cDQWTJsmDzsUAYgoag2UCZN xcx5QDFutVY9LpslaSxvcAOc53BQmJmHRIBeyX8v0/si+vsrrtilc344w9bKEhqU tCEADcXcPgceBJcADHdzjAFa6/mVP7awQAmeHDJDxOU+OGjzCqsfYJmHZ4xpqQyC eKwKeKLmLuNZF7/c5j9A4EgHOsI1Hxzb6SQLSzAS2XmkgoovAPw+sepIOV37T+YO 54YAqqzybXEw7N4qwXLa0J7eM0fqRjELWzI90bupz5i1SuJlGv6Kr2eNkoirycVm qBu90+wpgSlUp63IOGGt+g== 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-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1719557598; x= 1719643998; bh=u7Jfl62T72h+xMXthyJU6q5nVk2Q3l1Po/pDqGMTN08=; b=e QP1KtH8Ayf1sOrPrbpiKuZ3ZQ4sR5JUY2d8BydgoNNTJqv/eEHjJQ5kqqZETJUwU rpolnhtYEG8JviqEPzCDPOOznxeSdAb0+a+cdso+I2n0pQf6JxXE9zKU4hm9xBji l6US4b1f4xb8nlfD0C38krHN7ht0c4fkuiSqyFHfSvRr3Kk4IFHWVAIyOvgoes6Y FwjqUCStxHziN5//njNeVYZyRf6IiAlWBLa82m0NctpMG8X9FHHEo0Apbmxp8OBd /FOp+R4kxJ9JBsJacfab+XvPmv7+C0d754iyfTYuXOPacv9kDrPQw/eU1m23p4tZ HGorAk+qFN67qF00a9T9A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrtdehgdduudehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvufgfjghfkfggtgfgsehtqh hmtddtreejnecuhfhrohhmpedftfhofigrnhcuvfhomhhmihhnshculgfkoffuohfrngdf uceoihhmshhophdrphhhphesrhifvggtrdgtohdruhhkqeenucggtffrrghtthgvrhhnpe ehleffteeigfevudetfedugedtudevledugeeugeelheeihfehgfdtkeevvefgleenucev lhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehimhhsohhprd hphhhpsehrfigvtgdrtghordhukh X-ME-Proxy: Feedback-ID: id5114917:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Fri, 28 Jun 2024 02:53:17 -0400 (EDT) Date: Fri, 28 Jun 2024 07:53:17 +0100 To: internals@lists.php.net Subject: =?US-ASCII?Q?Re=3A_=5BPHP-DEV=5D_=5BInitial_Feedback=5D_PHP_User_Mo?= =?US-ASCII?Q?dules_-_An_Adaptation_of_ES6_from_JavaScript?= User-Agent: K-9 Mail for Android In-Reply-To: References: Message-ID: <1917CF7C-26D8-4DBE-B05C-5AA650AC6C9F@rwec.co.uk> Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net 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 28 June 2024 01:16:24 BST, Mike Schinkel wrote: > It may be an unpopular opinion, but I would argue that namespaces were o= ptimized for autoloading and the one class/interface per file paradigm I don't see any particular relationship between namespaces and autoloading= , or any reason we need to throw them away to introduce different conventio= ns for loading files=2E My opinions match Larry's almost exactly: I want package-level optimisatio= n, and package-private declarations=2E But I don't want to rewrite my entir= e codebase to start using a completely different naming system=2E=20 Not to mention that working with a combination of existing namespaced pack= ages and "new shiny module" packages is going to be inevitable, so we can't= just hand-wave that away=2E >1=2E Adding a module/package system to PHP with modern module features I find that "modern" often just means "fashionable"=2E Please, let's be sp= ecific=2E What is different between imports and namespaces, and why is it a= good thing? What specifically stops us doing all the things you've been discussing aro= und loading, and visibility, etc, in a way that's compatible with the 400_0= 00 packages available on Packagist, and billions of lines of existing code? Rowan Tommins [IMSoP]