Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:125199 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 D8A0E1A00BD for ; Sun, 25 Aug 2024 02:23:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1724552722; bh=nbxs/NFGR71TWK9NfoBu9+U19VGgTEV7ucLTgO8DFWk=; h=Date:From:To:In-Reply-To:References:Subject:From; b=T1RUBGim/qFA6kc3NrSHkEOxInZ7xgY1/coXxUnVMt0N+d2VIyZ3WwCLi6b0GPGr8 bZfnG0H2VnkI3MPVL8DS5455tOx0yP6pbK914eAHjqTf4pYHqCyaXPN+MyYhkTLrX+ d1yYs2271vcEb+YM+SzcpFSoERe7WgcGBBlSfMxfadel6cmVd3cYvIgPzYzwwn+GR9 wJJtpfcZItFKgq5qfkRSMRkgfCOXHrzvUE/OIYcJWRFU1H08/oKloKVgrvhiE7nct2 O/rbhKnM90EgEYQcIfLL9eRCj2cTRBIjcIh7YBpcptO+8l48zVUR/cL+tqCWa5gLXj zDTKOjKdmNgqw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id AB62A18004A for ; Sun, 25 Aug 2024 02:25:21 +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.8 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DMARC_MISSING,HTML_MESSAGE,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-yb1-f169.google.com (mail-yb1-f169.google.com [209.85.219.169]) (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, 25 Aug 2024 02:25:21 +0000 (UTC) Received: by mail-yb1-f169.google.com with SMTP id 3f1490d57ef6-e115eb44752so3433275276.0 for ; Sat, 24 Aug 2024 19:23:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=newclarity-net.20230601.gappssmtp.com; s=20230601; t=1724552609; x=1725157409; darn=lists.php.net; h=mime-version:subject:references:in-reply-to:message-id:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=CLaLvI7R3v09qRje8Hfm08Tml5RZVm3mT3YUeHAy8pw=; b=LvHR5lpwQcdEm3FyTVRjhm7UHxXdr+u630dhtIeWH8PjxMOKJDAyB8f4CK3l6lQBEh tEWUTJzcOXrC47dzBN2KY3V0pVqcTP3I36Wcig1ULgqF90+1Hi/Dk2hA2ca3bnzBI8Vg M4FQgNMtek2Og4cWd99SnfoJUK15t9G+5Z2mn5Y9PJpKsDR9PppxRyU8kKgCWgIv7Hlq cJ3CF679t72KE+a+/2jDUQ+oX10kqaarXw7PKnG7LhrVrPOgDXND6wM685v5XmO70ZZF zG4nJ23kCWZUVga00jwIfg3mha2OY31//zKqA+JuOG9dYmzOQ7lIOFWNWf2Avwxg9frq dOSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724552609; x=1725157409; h=mime-version:subject:references:in-reply-to:message-id:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=CLaLvI7R3v09qRje8Hfm08Tml5RZVm3mT3YUeHAy8pw=; b=DPU8h9vMa8nx2eHJJN4yLgnLnmaHwcN6UX8C2Uy2bAljSyZ/lylUE4QKizv2gevmdn xVT1OGq3tFDgc1hrjj0nOy5Uglekm7o5U0VTkHy0n/+4rmfM+UM2hV3MReriKOX8Krva i7MVBhn0qbNVL45R8/dwf4+1ztZ4Txt1sK2/qR+SDxyeObThLzTZYb32qTJCYNBQ29iP 4LZ4h3SVF6Of8GRRwwqJX/53IP06Vq1N4hWcsmnAfMEeJhsjrGi7/TOpCENxSEqoZfPM l+Mm36OYnMQ1vX1NFst0NS8zX5PstlG9OmQ5d177zgucuiWd9k83Z9Bmm/EoLmZxJ/Og ztNg== X-Forwarded-Encrypted: i=1; AJvYcCVqiT+Jhna0rv5yTsrrFiWruuUV4FlalaHQkBUvZmCkdksh7AUSt4FJ9WxISH0Mg7pkITsdn2Rphqk=@lists.php.net X-Gm-Message-State: AOJu0YyQ4EPNvhBcgCHDVKLj4wqRi9LM6987mJJIgnSMnNlwnDqZ2VxU lCjhLSw2aF/8X0Fk6Bd9UgKEMfP1ypMp2W377TeA1Qyw998PghL3AgQTOJReKnA= X-Google-Smtp-Source: AGHT+IExUQoolPCC4fX1fOGzvvxMdtrDirpy6HgQPoph0qXrBS3aeqkFGal1ARcOdUYOT4TJeCI/Xw== X-Received: by 2002:a05:6902:1683:b0:e11:8016:180c with SMTP id 3f1490d57ef6-e17a8e66209mr7579540276.52.1724552608565; Sat, 24 Aug 2024 19:23:28 -0700 (PDT) Received: from [192.168.1.168] (c-98-252-216-111.hsd1.ga.comcast.net. [98.252.216.111]) by smtp.gmail.com with ESMTPSA id 3f1490d57ef6-e178e5698ecsm1360576276.45.2024.08.24.19.23.28 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 24 Aug 2024 19:23:28 -0700 (PDT) Date: Sat, 24 Aug 2024 22:23:20 -0400 To: Ilija Tovilo , PHP internals Message-ID: <11D68C16-751E-4FBE-ACB8-F95ABC5190F2@edison.tech> In-Reply-To: References: Subject: Re: [PHP-DEV] [Concept] Flip relative function lookup order (global, then local) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="66ca9598_327b23c6_90b0" From: mike@newclarity.net (Mike Schinkel) --66ca9598_327b23c6_90b0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline =20 =20 =20 =20 =20 =20 > =20 > On Aug 23, 2024 at 2:30 PM, wrote: > =20 > =20 > =20 > On =46ri, Aug 23, 2024 at 8:19=E2=80=AFPM John Coggeshall wrote: > > 1. People who don't think BC is a problem, a= nd would like to drop > either the global or local lookup entirely, req= uiring disambiguation. > > There is also an option of swapping the pr= iority, making local lookups secondary to global lookups -- and to overri= de that behavior you would require disambiguation. It doesn't have to mea= n drop the lookup entirely. Right, that's my proposal. My point was that = few (nobody except you and me, I believe) showed particular excitement fo= r this approach. =20 > =20 > =20 > =20 > =20 > =20 > =20 > =20 There is also the 5th (or 4th=3F) option of making built-ins special and= not require them nor locals be prefixed, and instead require global user= land functions to be prefixed. =20 > =20 =20 =20 =20 =20 -Mike =20 --66ca9598_327b23c6_90b0 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
On Aug 23, 2024 at 2:30 PM, <Ilija Tovilo> wrote:

On =46ri, Aug 23, 2024 at 8:19=E2=80=AFPM John Coggeshall &=
lt;john=40coggeshall.org> wrote:
>
> 1. People who don't think BC is a problem, and would like to drop
> either the global or local lookup entirely, requiring disambiguation=
.
>
> There is also an option of swapping the priority, making local looku=
ps secondary to global lookups -- and to override that behavior you would=
 require disambiguation. It doesn't have to mean drop the lookup entirely=
.

Right, that's my proposal. My point was that few (nobody except you
and me, I believe) showed particular excitement for this approach.



There is also the 5th (or 4th=3F) option of making= built-ins special and not require them nor locals be prefixed, and inste= ad require global userland functions to be prefixed.

-Mike
<= /html> --66ca9598_327b23c6_90b0--