Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124020 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 AA8811ADB37 for ; Sat, 29 Jun 2024 09:41:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1719654175; bh=/Cw9dDAD7PbICJj0yC3EREQsNQBuHp90SbQe4aDSw2Q=; h=From:Subject:Date:In-Reply-To:Cc:To:References:From; b=N1TQCQa21MoR/U6xwSIUHfCVNHL2UOycPG/uGeYQPrSp4iVkKdlAS3bD/kheoUIHf jLI7Gok1H33hjsRyocUG0vYQPfUjsFKLzAqSgDsfoll3jKnj47JTrh4umRHyVHx6By zVTBRHjuc9UBbIxWtCtTj+mxaXPcjkJYoVEt0kpJYinZC5miquyI0cNXx1srl0VY7c x9XY9B6IP0y8fW9TcCJ2eXdD7QPWEXY/T4M2RnMMFgEBUQVqpwKFADeZB5h041cQ1G dzyznYfW5O/i90JWgWL+I0I8MFTn4OeukFc/fQFT7ZduuNBnpaj06U4cca/0e/MBJr Sb1g265FcOyhQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id D74C718123F for ; Sat, 29 Jun 2024 09:42:53 +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=2.3 required=5.0 tests=BAYES_50,BODY_8BITS, DKIM_SIGNED,DKIM_VALID,DMARC_MISSING,HTML_MESSAGE,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,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 mail-yw1-f180.google.com (mail-yw1-f180.google.com [209.85.128.180]) (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 ; Sat, 29 Jun 2024 09:42:46 +0000 (UTC) Received: by mail-yw1-f180.google.com with SMTP id 00721157ae682-64af39fbc57so13077427b3.0 for ; Sat, 29 Jun 2024 02:41:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=newclarity-net.20230601.gappssmtp.com; s=20230601; t=1719654086; x=1720258886; darn=lists.php.net; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:from:to:cc:subject:date:message-id:reply-to; bh=v/g+jclduRx04MA0d5iULgev62cMwSVlU8LI9dFdIns=; b=PINW9VJVvKC/CpN7XX3Rb6qC1L14MudqfFNTON5z7rhW/6ksPOUPFPgV8sgXCgSaYM 1PngDsJE/ce5IVS9P3MD4+wCvorP556HMaCTny1AUfwm9BvwqMgzrJ4uk1n4eAcGRWfQ 9cVSQZ3/pnwhStI1B38BgQhiGWxAmyS/pV01cyOWQc4MeEDNMvCXEaxBqotz6HFxqMMo AXoFvvPbfHQ9U/wa+W/kDyYfS9INOpFNLbqYTNlGLCfuCxkajJ6lkVScjaVNW34UZv70 lPBOa11+E4SIBNJ4XmgulSzpN7G7cxagd3PXs9R8nwIK08eKz1vL6SNffm8AbQb9Omq+ O0fA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719654086; x=1720258886; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=v/g+jclduRx04MA0d5iULgev62cMwSVlU8LI9dFdIns=; b=BJ81SISD7zz+HcS/SgbvZeu3a2vsfDhzchzb3rDz126zXDnH9RSFSquV7T3H+QQc/Y B7RX6upQvImGiB5qEBRqABxRbIDON7qvbc1vJTkSV5ipngJlQP6n+qkgZOOMR4dhEr/Y qtchPaQE1iHOyNrg/EWJszuTFcQQSI+pPFivS7Uhgw6h1D8SAYB3LlhhISc/3UaeCnhl fAGlbxmu6RuFMp6TxIHrKq1rM4RljFnbG4N1ctIkd3S+V2UJ5Op8WRoZyhk2WjxLS/bp pcw3bSeJSjmIs3q2+0fa0/Q3VQJ8HHwUUF80Qgesih/xeOR8nb7GlhOt2CLdZlHhVFtJ 2Trw== X-Gm-Message-State: AOJu0YyLWC6idhY8pEa8tDn/X6BRsq6aC9NUFsagplS4r0YhHF3hMOR1 skUT4yCANu584IjQofdHpzw8HC63vGySZig+/lFXGydX4o4riBoUiDnaXFlvAHqH3TLYI7gkFJm oH68= X-Google-Smtp-Source: AGHT+IH0hdU8/D/GwgiXF5tMjbui6IlbZi1+GBYGboiYVylj82htavmsnClVs1bg/MoZUAAhKf1xxw== X-Received: by 2002:a05:690c:6789:b0:615:2ed7:59c with SMTP id 00721157ae682-64c736fcca7mr6476997b3.47.1719654086513; Sat, 29 Jun 2024 02:41:26 -0700 (PDT) Received: from smtpclient.apple (c-98-252-216-111.hsd1.ga.comcast.net. [98.252.216.111]) by smtp.gmail.com with ESMTPSA id 00721157ae682-64a9c406955sm6271297b3.135.2024.06.29.02.41.25 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 29 Jun 2024 02:41:25 -0700 (PDT) Message-ID: <73D85D81-D3F2-449E-8991-4DEA194552EB@newclarity.net> Content-Type: multipart/alternative; boundary="Apple-Mail=_2EB63F6B-968B-4950-B91E-72ACD85B2955" Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.8\)) Subject: Re: [PHP-DEV] [Initial Feedback] PHP User Modules - An Adaptation of ES6 from JavaScript Date: Sat, 29 Jun 2024 05:41:25 -0400 In-Reply-To: <920f33e5-0a2e-436c-86e8-e4bbd699e47b@app.fastmail.com> Cc: internals@lists.php.net To: Rob Landers References: <0acedb8e-34be-4348-907b-4075cf7641fd@app.fastmail.com> <9c20b078-f82a-47fe-af23-2f3cdd233079@app.fastmail.com> <920f33e5-0a2e-436c-86e8-e4bbd699e47b@app.fastmail.com> X-Mailer: Apple Mail (2.3696.120.41.1.8) From: mike@newclarity.net (Mike Schinkel) --Apple-Mail=_2EB63F6B-968B-4950-B91E-72ACD85B2955 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Jun 28, 2024, at 7:45 AM, Rob Landers > wrote: >> Fast forward a bit - PHP 5.3, and the introduction of namespaces were = introduced to deal with the overloaded symbol tables. They are a bit a = hotwire as (if I'm not mistaken, it's been a couple years since I read = the discussion on it) they just quietly prepend the namespace string in = front of the name of all new symbols declared in the namespace for use = elsewhere. As a result, PHP namespaces don't do some of the things we = see in the namespaces of other languages (looking at Java and C# here). = For example, privacy modifiers within a namespace aren't a thing. >=20 > This would be nice to have ... maybe. But namespace have been around, = what, 10-15 years? I think if someone wanted to "fix" it, it would have = been fixed by now. Or not. =20 Never underestimate the power of inertia for maintaining a less than = ideal status-quo, especially when the decision to change has to be = approved by a 2/3rd vote of committee. =F0=9F=A4=B7=E2=80=8D=E2=99=82=EF=B8= =8F -Mike= --Apple-Mail=_2EB63F6B-968B-4950-B91E-72ACD85B2955 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
On Jun = 28, 2024, at 7:45 AM, Rob Landers <rob@bottled.codes> wrote:
Fast forward a = bit - PHP 5.3, and the introduction of namespaces were introduced to = deal with the overloaded symbol tables. They are a bit a hotwire as (if = I'm not mistaken, it's been a couple years since I read the discussion = on it) they just quietly prepend the namespace string in front of the = name of all new symbols declared in the namespace for use elsewhere. As = a result, PHP namespaces don't do some of the things we see in the = namespaces of other languages (looking at Java and C# here). For = example, privacy modifiers within a namespace aren't a thing.

This would be nice to have ... maybe. = But namespace have been around, what, 10-15 years? I think if someone = wanted to "fix" it, it would have been fixed by now.

Or not.  

Never underestimate the power of inertia for maintaining a = less than ideal status-quo, especially when the decision to change has = to be approved by a 2/3rd vote of committee. =F0=9F=A4=B7=E2=80=8D=E2=99=82= =EF=B8=8F

-Mike
= --Apple-Mail=_2EB63F6B-968B-4950-B91E-72ACD85B2955--