Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:109794 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 86237 invoked from network); 23 Apr 2020 00:21:26 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 23 Apr 2020 00:21:26 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 84C9F1804F8 for ; Wed, 22 Apr 2020 15:53:13 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS63949 74.207.252.0/24 X-Spam-Virus: No X-Envelope-From: Received: from malamute.woofle.net (woofle.net [74.207.252.100]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Wed, 22 Apr 2020 15:53:12 -0700 (PDT) Received: by malamute.woofle.net (Postfix) with ESMTPSA id C4FFD1F0DE; Wed, 22 Apr 2020 15:53:11 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) In-Reply-To: Date: Wed, 22 Apr 2020 15:53:10 -0700 Cc: internals@lists.php.net Content-Transfer-Encoding: quoted-printable Message-ID: <0B6E2AEA-EE0F-4EE6-91B2-7E8520DE0216@woofle.net> References: To: Andrea Faulds X-Mailer: Apple Mail (2.3608.80.23.2.2) Subject: Re: [PHP-DEV] Any interest in a list type? From: dusk@woofle.net (Dusk) On Apr 21, 2020, at 12:49, Andrea Faulds wrote: > I recall someone previously suggesting (not formally proposing IIRC) = we could have a standard library is_ function to check these, but it = didn't go anywhere. That would be me, and I had a draft implementation for it: https://github.com/php/php-src/pull/4886 My proposal was more oriented towards adding a function to test whether = an array was list-like (all keys are sequential integers), though, not = adding it as a formal type.=