Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:98967 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 30164 invoked from network); 4 May 2017 22:00:19 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 May 2017 22:00:19 -0000 Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.48 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 74.125.82.48 mail-wm0-f48.google.com Received: from [74.125.82.48] ([74.125.82.48:36632] helo=mail-wm0-f48.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B4/87-02776-E64AB095 for ; Thu, 04 May 2017 18:00:14 -0400 Received: by mail-wm0-f48.google.com with SMTP id u65so9174765wmu.1 for ; Thu, 04 May 2017 15:00:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=eH+cfIN4TYPl9+ie82eKbYQP3h1sxRX51hqB7KdwxZg=; b=rXbe9fd4qwTSNqVIYj9AKTFnuRKGiy6jPE8CC9yvMMzH5LSSDX3yFMMPcJgsO2AYdd e5FKFd9ZBZVSFCQ7WzF/TWFJ3BXIfVvUCB/7EIb/StsI3QcCCz8Z+O9GhXBhGKkAN/u/ 0n/1LKcpHOXVi9c1Yh/rK80Djj5tmyFdPpDsPfxCSU9z/VfqAKsnqx0U+NtuPFNHbBxB pe74aHlIx7ECkTyzpMQGTZng2D01Aee7YqPSz3zU5dDVXXqkIMRGPkBpIS3Rmg3Q5nDr JkPdAfQ4+JiSZYr+P6YJqhpWznA18IplV6bUH0sYIrd3/e91mAck1ek3jBpvj+qNc7Ms dA2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=eH+cfIN4TYPl9+ie82eKbYQP3h1sxRX51hqB7KdwxZg=; b=NrJ9j0YAvK+lI+jAoCJX6yebZ4iUucvVy9gOWNKmmHBSi5pqtMhPPeEpczVJNp4izi of6GzYunLEfy7BcrcetnquYuVihxekJZnJGfGI+dziYEjBUmvqnvQkZBOWEKZvQUjCJw mYgP23D7PQCDvrQRPweUDnBoVoFmJLPE6st2d295bNjkNBteot/WHiQWlaQ7x7rn1Ams +XkRNWpIayJoi1iFuQVbolNiVjxNFHeZgynfsG6ov518glWoKhDqUHMJ93DA6Ojdn9Wj afE0FUHtiqK8ySw4CXaDZngwcYoSm86Yc5oKRqvoII4CB0cuPe2Ec+nhHRCjQAicFX/E FWpw== X-Gm-Message-State: AN3rC/4mdMVWjaRB7NFYaVMT1HO5v6Xo92jrrhTzFAfdnod14Fs+pgiJ S7D4yyR5dffXtV6E X-Received: by 10.28.10.67 with SMTP id 64mr3494871wmk.126.1493935211415; Thu, 04 May 2017 15:00:11 -0700 (PDT) Received: from ?IPv6:2a00:23c4:4bd2:6e00:ddaf:efd9:92d2:d495? ([2a00:23c4:4bd2:6e00:ddaf:efd9:92d2:d495]) by smtp.googlemail.com with ESMTPSA id f63sm261773wmh.8.2017.05.04.15.00.10 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 May 2017 15:00:10 -0700 (PDT) To: internals@lists.php.net References: <0b4f249f-f574-2dcc-4485-1d765bc4cb18@gmail.com> Message-ID: <33c54324-caf3-008d-ee1e-26ab492650d1@gmail.com> Date: Thu, 4 May 2017 23:00:07 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Add is_vectorlike($array) function From: rowan.collins@gmail.com (Rowan Collins) On 04/05/2017 13:51, Michael Morris wrote: > For what it's worth, the Drupal assertion inspector calls these "Strict > Arrays" since that's what they are - arrays in the true sense of the term > found in all other languages. What PHP is calling an "array" is more > accurately a "map" or "hash" I'm not sure on that terminology. Many languages / environments have "sparse" arrays, arrays with negative indexes, and other variants. It's true that PHP's "array" type goes well beyond those, but we're talking about more than "non-associative" here (or I hope we are). I think possibly the best term would be "list" - a collection where order is preserved, but there is no separate notion of keys: on a "list-like array", $foo[42] can be seen as "access the 43rd value", not "access the value with key 42". Regards, -- Rowan Collins [IMSoP]