From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 30455e60 for ; Sat, 2 Nov 2019 08:21:42 +0000 (UTC) Received: (qmail 15988 invoked by alias); 2 Nov 2019 08:21:35 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 44888 Received: (qmail 26330 invoked by uid 1010); 2 Nov 2019 08:21:35 -0000 X-Qmail-Scanner-Diagnostics: from mail-yb1-f195.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.0/25615. spamassassin: 3.4.2. Clear:RC:0(209.85.219.195):SA:0(-1.9/5.0):. Processed in 1.960879 secs); 02 Nov 2019 08:21:35 -0000 X-Envelope-From: dana@dana.is X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.219.195 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dana-is.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=mr//10DESZJ2RR9KiECoImiJcJyXmybOXJ1r16IMjfo=; b=JHZ02/uulNTUEvNSDHU4oKblkEEyopvGjkqQYPOeXKJh6MsnxOaqhvIIZHHIL3SZdG gWyU7Ctdq3Yd7H4KxEYgNDURCZZ+NBuvrBowgB0bmvvfphgHR+eHNJajX2Xi/CPcYs1U +Fa/4TWsVJWKZ/BX1P8dmCXPIFSmX+VRTvIJky9DMKrmj9cEHL4/hIrNIfVSR68NCv6k 0s8Fj/0BZvbouJXaNeTL9kfR97+JHLZTIY62bX7zPxO34a1crDS0+mNRmNMiI4tor1IB Nhfqs3b00tGXn77boZbbSUPbbpDWZfyprebdNhqpp4qiS50idJCSBkW2GufUjOgIHTXp rmMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=mr//10DESZJ2RR9KiECoImiJcJyXmybOXJ1r16IMjfo=; b=NBIKWrG30lWRDZlbyBEqYain/lbtwYoUG/v6mz+39GdPGlarSSXyWr44wV60TL6bpx oxgzGjDcPMPP0CbxgcmGVl31G3qIi82Xn4RNGv0euqKy1MIGMJmWicVhdC+Uj6W5UfBW /7WCsAnIH45pj+5QUu47bYShNlyUqsuqLk3i95qQbUJelrbw+voaNgbP/THHMzv+DVmA ur6pJuGp1Qr4zHd3LqlMObW+903070nk/xW0/Q3NY14kBKXEQuhLCZHA7ZY08FB4vKmv dk4itMD7+58Du5s/TL7PbtIDAKIqAr6RrqzCTvQbIXYzDFgSnvPUoOFepQr5NYhG/z5j jaqg== X-Gm-Message-State: APjAAAUQkOMY1fSVKiRoaWzr2MCie8IUwIfxcCToIev/0rvU1XuJw4fT eBb+2NWDzV4fhNqvtJyFmKkGFPoqWVBl7Q== X-Google-Smtp-Source: APXvYqz4fnqVaxQJdUmrYFA0FeV+2OKP11sorn7DWK6sT/kJpB6uQE+Y4zaobUjWDEgrpJ0ou19yhw== X-Received: by 2002:a5b:38f:: with SMTP id k15mr12950076ybp.35.1572682859817; Sat, 02 Nov 2019 01:20:59 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: [PATCH] Completion: Add _log_priorities, _logger From: dana In-Reply-To: <6dd17886-7097-4f7f-b254-f17ef861abf4@www.fastmail.com> Date: Sat, 2 Nov 2019 03:20:58 -0500 Cc: zsh-workers@zsh.org Content-Transfer-Encoding: quoted-printable Message-Id: <34BB72BA-0317-48E6-828C-9D6193C2F34C@dana.is> References: <20191102055423.5gzbipni3vnjo4k3@tarpaulin.shahaf.local2> <4D918504-B8F4-46D5-9F04-8B223A56FDEE@dana.is> <95142696-7C02-4969-8F55-719FEAF646D8@dana.is> <6dd17886-7097-4f7f-b254-f17ef861abf4@www.fastmail.com> To: Daniel Shahaf X-Mailer: Apple Mail (2.3445.104.11) On 2 Nov 2019, at 02:45, Daniel Shahaf wrote: > Strange how? I think it's pretty intuitive: to call =C2=AB_foo = "$bar[@]"=C2=BB, > write =C2=AB_foo -Y"${^bar[@]}"=C2=BB (?). This is... > - Completely generic... > - Composable... > - Requires no new code to implement All true, yeah. And you kind of implied it in your first bullet, but, to = call attention to it, a nice thing about that method is that it also extends = to (positional) operands. The -Ya thing i suggested wouldn't do that. (On = the other hand you pretty much never want to pass operands through a type = function to compadd, so idk if it matters.) My main (only?) issue with it is just that it looks a bit visually messy = to me. Calling it with -Y$^arr is succinct enough, but you'll rarely do = that in practice, as arguments to type functions are usually written out at the = point of call. So you'd see a lot more of the `-Y-a -Y"my optarg" -Y-bcd` kind of stuff. dana