From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.5 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: from zero.zsh.org (zero.zsh.org [IPv6:2a02:898:31:0:48:4558:7a:7368]) by inbox.vuxu.org (Postfix) with ESMTP id 4480423066 for ; Mon, 15 Jan 2024 08:02:28 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:Subject:Cc:To:From:Date: References:In-Reply-To:Message-Id:MIME-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=iRjdtzPeDAKqsxYmjExZVUPEaEz1KwvOJijziajd1Ls=; b=glPyO92AM7pIn/Gibstm5a8fAG 9TVyniml361KMnAjyPlZh7wvM3LLjfLK7hlJAlaRAUbcDX4e6eLqVzED153alJ3RpGMGfS4Riaa42 vsi5DV0jE3Iv1iqS9ThdfPliM/kRqQI0gN20FybfwwNQVkk6loGinnU1cVxtDe8JsJ0P1kde4nxUR pqRkYpIdMewo4OKB9E0oh4PvXHC4YFJlq7v0RWdm7aBtxuyh9ED1G6ttBOypeFaen7yGNhdxlnJ3N 639Rz2+65/Bi3n52Oxh7sv8zQ6MBo921fSJD17lvDVkOxdYYL0URz7cdu8n7y7ejfWS1eyr3u0gYo ZUQEbvjw==; Received: by zero.zsh.org with local id 1rPGzM-000ImM-0G; Mon, 15 Jan 2024 07:02:28 +0000 Received: by zero.zsh.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1rPGyi-000I4e-Rl; Mon, 15 Jan 2024 07:01:49 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailauth.nyi.internal (Postfix) with ESMTP id D713E27C005A; Mon, 15 Jan 2024 02:01:47 -0500 (EST) Received: from imap48 ([10.202.2.98]) by compute2.internal (MEProxy); Mon, 15 Jan 2024 02:01:47 -0500 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdejtddguddtvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvvefutgesthdtredtreerjeenucfhrhhomhepnfgr fihrvghntggvucggvghljoiiqhhuvgiiuceolhgrrhhrhihvseiishhhrdhorhhgqeenuc ggtffrrghtthgvrhhnpeffleeiuefhgfefvefhheeifeehjeeuffeftdduveelveeiudff hffgjeejvdethfenucffohhmrghinhepfihikhhiphgvughirgdrohhrghenucevlhhush htvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehlrghrrhihvhdomhgv shhmthhprghuthhhphgvrhhsohhnrghlihhthidqudduhedukeejjedtgedqudduledvje efkeehqdhlrghrrhihvheppeiishhhrdhorhhgsehfrghsthhmrghilhdrtghomh X-ME-Proxy: Feedback-ID: iaa214773:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id A3E4631A0065; Mon, 15 Jan 2024 02:01:47 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-1374-gc37f3abe3d-fm-20240102.001-gc37f3abe MIME-Version: 1.0 Message-Id: In-Reply-To: <49702cd2-814c-4461-9819-cc2b85bd3ea2@eastlink.ca> References: <205735b2-11e1-4b5e-baa2-7418753f591f@eastlink.ca> <7b20b425-59b2-466d-a9aa-a2768d1d4633@app.fastmail.com> <4b475319-ef78-4d46-a62c-27c3b0af3ea4@eastlink.ca> <49702cd2-814c-4461-9819-cc2b85bd3ea2@eastlink.ca> Date: Mon, 15 Jan 2024 02:01:14 -0500 From: =?UTF-8?Q?Lawrence_Vel=C3=A1zquez?= To: "Ray Andrews" Cc: zsh-users@zsh.org Subject: Re: Empty element elision and associative arrays (was Re: Slurping a file) Content-Type: text/plain X-Seq: 29485 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: On Sun, Jan 14, 2024, at 11:09 PM, Ray Andrews wrote: > On 2024-01-14 16:55, Bart Schaefer wrote: >> (output may vary because associative arrays are not ordered). > > I've noticed that. One might think that the order of assignment would be 'the order' by inevitability, but that seems not to be the case. I don't understand how it could be otherwise but nevermind. Consider learning about how associative arrays are typically implemented. Then you would see that there is no "inevitable" iteration order; one must be usually be chosen and implemented explicitly, which is extra complexity that many languages choose not to bother with. https://en.wikipedia.org/wiki/Associative_array#Ordered_dictionary -- vq