Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124653 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 82C341A00B7 for ; Sat, 27 Jul 2024 21:52:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1722117226; bh=H7ud0bKrTi18QC/5zP/qlZz4QGB2AxT94djEdIBSkiw=; h=In-Reply-To:References:Date:From:To:Subject:From; b=BeH0FXdmGrEjpe4K8Rm48Pp1CIqMIZhL0XCnFGThY2k1FOVVq1nyFEAEvk7XQRDiR lm214dvbNKELUepkNZaPdcLuscXyM6ws6IVdF4oOPWP7oxqAiW7ZTN/lvdCd16U3p1 O1nN/dO7L5l71nnWsqDtaQpC4+suxQp9EyPw3tA+mLEUrsiMCZL3AggWbT/hGCis8Q yOyK9UG6S0HJLQ88vkU8yX0XaXqE2mfgwD1njYcDjxzHAXPKwBN3JsRq/SiLS9dy78 eBwGhL3lkeJ5PYLZe6xUxIxSyt8Kr/u3yQNLrMeNFkq7YOI1sYocxgfSllGA/QJIoL uIR+/dvwS0PxQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 223F718006E for ; Sat, 27 Jul 2024 21:53:45 +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,HTML_MESSAGE, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No 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 ; Sat, 27 Jul 2024 21:53:44 +0000 (UTC) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailfout.nyi.internal (Postfix) with ESMTP id C28DE138004F for ; Sat, 27 Jul 2024 17:52:07 -0400 (EDT) Received: from imap49 ([10.202.2.99]) by compute3.internal (MEProxy); Sat, 27 Jul 2024 17:52:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bottled.codes; h=cc: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=fm1; t=1722117127; x=1722203527; bh=H7ud0bKrTi 18QC/5zP/qlZz4QGB2AxT94djEdIBSkiw=; b=LjGEE6FcDh+lQiKWEpgqNIV/Hr 2pMluxLccq2O2T28TKrzia5a8kffIJ+ZEDVdSBNVzHRe5WfiokGYLD7H2aJtj7y9 ntT+I4iVaGjwlqH7yHp7KNUq10XNaTdvvGgp34MKT/ZIwYr0UeixKuSUUPR5qnUo exBCepmrKFIqHka4ulIZSMvtEZPz8cLbJ7REw6oIv+25iNdE21/rjqOpACfnw4Zp /yn8JsLO1X7TR2yjXptbGjUAfCR85MxK4XA9PGe7H2118JUmd7SfqUVhKJbiQFoz UteMimJjNTWNBBgSvJi7Ky1IJmncUCZta/EsWU9gQFK3N0o1N/fgQQU16wgw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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= fm3; t=1722117127; x=1722203527; bh=H7ud0bKrTi18QC/5zP/qlZz4QGB2 AxT94djEdIBSkiw=; b=WQXk06yUEm6CSiAAn/J+/NCzmhOar4dN0aYlvEjK6PFg yXMTSasje2Z9dQpcAp2uvUEkFOPQH6X3MBnrYTEEhuT565bvoL+wHUHERGAjVs5K FcwA8ZHx1l5tOx7L1nKTbuwXljIdZoktZJTeE+GApiZZG/xFH5MIwMOXhsklAC8n NeOBBKAug98imdoVV5SOwGY+YkscmdO06ht1JyWtP6k3WALprJD9kHO9EtHmzHIl 5TWCW+MwXKOrOHxFlVfEuHfqJmNxlCXUXm+qB19EQ6+SdURGG1uCBh7rVZ2wdoru jf1fRPBnNvlvKI0UX7pylYKBRYUcw8txCMRg0FYllA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrieekgddtfecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkjghffffhvffutgesrgdtre erreerjeenucfhrhhomhepfdftohgsucfnrghnuggvrhhsfdcuoehrohgssegsohhtthhl vggurdgtohguvghsqeenucggtffrrghtthgvrhhnpedvieekueeltdegleeutdelhfffff ffveevheelueduuefgjeejieegkefhieeuudenucffohhmrghinhepphhhphdrnhgvthdp ghhithhhuhgsrdgtohhmpdgtohhnthgrihhnvghrqdhofhhfshgvthdqsggvhhgrvhhioh hurhdrmhgunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhho mheprhhosgessghothhtlhgvugdrtghouggvshdpnhgspghrtghpthhtoheptd X-ME-Proxy: Feedback-ID: ifab94697:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 280F915A0092; Sat, 27 Jul 2024 17:52:06 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-582-g5a02f8850-fm-20240719.002-g5a02f885 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Message-ID: In-Reply-To: References: Date: Sat, 27 Jul 2024 23:51:44 +0200 To: internals@lists.php.net Subject: Re: [PHP-DEV] [RFC] Improve language coherence for the behaviour of offsets and containers Content-Type: multipart/alternative; boundary=877a58212d5c40aaa9dadf2de55c9712 From: rob@bottled.codes ("Rob Landers") --877a58212d5c40aaa9dadf2de55c9712 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable On Thu, Jul 4, 2024, at 15:52, Gina P. Banyard wrote: > Hello internals, >=20 > I would like to formally open the discussion on an RFC I've been worki= ng on for the past year: > https://wiki.php.net/rfc/container-offset-behaviour >=20 > As DokuWiki is a bit of a faff at times, the Markdown sources are avai= lable on GitHub: > https://github.com/Girgias/php-rfcs/blob/master/container-offset-behav= iour.md >=20 > The implementation is basically done, other than some mysterious JIT i= ssues that I haven't been able to pinpoint yet. >=20 >=20 > Best regards, >=20 > Gina P. Banyard >=20 I apparently was sitting on a draft in this thread: Hey Gina, Is there potentially a 12th type of operation? It is implied multiple ti= mes, but not spelled out: "offset exists" (i.e., "array_key_exists()" fo= r arrays). The recent discussion on pattern matching makes it seem like = there is potentially a huge difference between "an offset that exists" v= s. "an offset with no value"; whether or not that is the case, I believe= it is an operation on a container? Maybe. I believe you are the subject= -matter-expert on this, by this point, for sure; so you would know. In a= ny case, why or why wouldn't it be considered an operation? =E2=80=94 Rob --877a58212d5c40aaa9dadf2de55c9712 Content-Type: text/html;charset=utf-8 Content-Transfer-Encoding: quoted-printable
On Thu, Jul 4, = 2024, at 15:52, Gina P. Banyard wrote:
Hello internals,

I would like to formally open the discussion on an RFC I've been worki= ng on for the past year:

As DokuWiki is a bit of a fa= ff at times, the Markdown sources are available on GitHub:
https://github.com/Girgias/php-rfcs/blob/master/conta= iner-offset-behaviour.md

The implementa= tion is basically done, other than some mysterious JIT issues that I hav= en't been able to pinpoint yet.


<= div>Best regards,

Gina P. Banyard
=


I apparently was sitting= on a draft in this thread:

Hey Gina,

Is there potentially a 12th type of operation? I= t is implied multiple times, but not spelled out: "offset exists" (i.e.,= "array_key_exists()" for arrays). The recent discussion on pattern matc= hing makes it seem like there is potentially a huge difference between "= an offset that exists" vs. "an offset with no value"; whether or not tha= t is the case, I believe it is an operation on a container? Maybe. I bel= ieve you are the subject-matter-expert on this, by this point, for sure;= so you would know. In any case, why or why wouldn't it be considered an= operation?

=E2=80=94 R= ob
--877a58212d5c40aaa9dadf2de55c9712--