Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:122609 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 2A2991AD8F6 for ; Mon, 11 Mar 2024 12:52:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1710161559; bh=/FVImH8Mm8i3r+9SCi1f3luROgXHEErpOqRruTw2GY8=; h=Date:To:From:Subject:From; b=ilp7Be9NqCrFRW7ana3e8aZXpSk/xxe9X62jfDe7aKEfEvwfF496ScjR7EZPDcvYm KSmvNOWEmHzfAoC6/99GktV6MRsB2hdMwn7/MH6VpE+IqzJjtE/vmF3VtV+XQCjnlb mDrvamoDqstHw2EDb+FQXi4iM3z6vA/zMH190XHzdHL/H5aQt8G6ZJJ22H3EC3+Hb0 WNoRB8mttdvGdpDF0M9FmkHATVFAJgni2AStqlgtwwqh4cjT20hk4wkwPKuSRP3jc2 4ApuKPFmCPeNr8XKc3K2ZRKhtYwn3vVrh05WXbbtDHG/NUDfg6wawvOSjhCMs7QV+J eMgP0jUf31Y+A== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 9D7A81801D5 for ; Mon, 11 Mar 2024 12:52:37 +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.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,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: No X-Envelope-From: Received: from mail-4022.proton.ch (mail-4022.proton.ch [185.70.40.22]) (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 ; Mon, 11 Mar 2024 12:52:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gpb.moe; s=protonmail; t=1710161538; x=1710420738; bh=/FVImH8Mm8i3r+9SCi1f3luROgXHEErpOqRruTw2GY8=; h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=jkipid1i/td1BjkRNY66Iy6jayCDMSBR9Bvg2c5+w6b1ys93FppL5Ladrcgv/YDiY 76YF6Gb80SB7l7PTc5yj1M+39CGaiqj6QflinLsw45eTXyCpNu/c2F+eozCn/oeGaf AcWw6NNxq7bIMWqhezbXNlUF7XPdaWEVzutwPHJKYd76ZbucmQ8mixepX9nJg6InrA Em+JpG54rP3N0p8jxa4kp0T8io8Rh0q8QxlzAIEGI/8qKzyQvixBeBltr6LuIHIDsO Oqjv41nDErWmftBTxeSqsF4Ic+dNf5p1Cfu/iFe5w294WqX5nG3nlULPywIehGYO9X db0ZnRITjIzcw== Date: Mon, 11 Mar 2024 12:52:12 +0000 To: PHP internals Subject: [PHP-DEV] [Pre-RFC] Improve language coherence for the behaviour of offsets and containers Message-ID: <1MzJ8G_MuG-LJsMSoGDIRBmSODjO4hxPACqMoQYfx83MS-du6sskpNLJ45HnzPYMoUNkXyGiZEUAtFk-uyeGDv_Kwg6Qgtod05pXCQH-8M8=@gpb.moe> Feedback-ID: 96993444:user:proton 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: internals@gpb.moe ("Gina P. Banyard") Hello internals, I would like to get some initial feedback on an RFC I've been working on fo= r the last 5=E2=80=936 months. The RFC attempts to explain, and most importantly, improve the semantics ar= ound $container[$offset] as PHP is currently widely inconsistent. The RFC is about six thousands words, so I would recommend a cup of tea/cof= fee before starting to read it. The main things which are still in flux is the naming of the new interfaces= and methods, the phrasing of error messages, and the behaviour around usin= g null as a container. Those are generally indicated with a TODO comment. Of note is that I will also be going on holiday for 3 weeks from the 19th o= f March, so ideally most of the feedback would come during that time frame = so that I can finalize the RFC after my holiday. RFC: https://github.com/Girgias/php-rfcs/blob/master/container-offset-behav= iour.md Best regards, Gina P. Banyard