Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH 2/5] _hg: declare appropriate local parameters for ->string form
- X-seq: zsh-workers 43246
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: Peter Stephenson <p.stephenson@xxxxxxxxxxx>, zsh-workers@xxxxxxx
- Subject: Re: [PATCH 2/5] _hg: declare appropriate local parameters for ->string form
- Date: Mon, 06 Aug 2018 12:06:08 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=zw8jWu wTeJ1vJWhidkNQg5hQ1xYWR7Ez6N2W8S7qYdk=; b=IB7fLdRhZUEEEHN2TNoeZI yLSTuVmWPJcNN3PmC6pwz6NVEgBbNVBK1+Z0Mo5pPLe2Sqo6ttb3ZuXyXgtTG5Rp SsEoF8a57cbdD7nIBGrHf5LOCG7i3z1ByGzfPZtAVITNs1qa3rQD0MPA+NGgU0h2 Vn189Qi8U+VqPuk8K1c+V6ZTkeXa65enoMKr9JdeR5cVubCBLgnp89Dm0eWj35LS WqBcJzidSxr6oGTlKO27qbIS8thlu3qz2M/HedTO0iW6Shxdvz606NIvcgCskJLB 9Ix+/Y1NXVmhK6djXImeKTtuRajvse/JC97JU3WuxOzK+nzB7d4GAx7bqoob65+g ==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=zw8jWu wTeJ1vJWhidkNQg5hQ1xYWR7Ez6N2W8S7qYdk=; b=Yhk56NaTk0wkADUYRjFDiR vi9XfYDgTFI3p1rsuBpYpnobZ2rKW8LiaxRet61ZEfQifVssuJLXpwETeF8QDfDB JxMq8TYw+owYZ17B9JQX2jezUbETQ/r+OF86Vp9vpq80SyvT8OOPdRkTzF/DdPT3 vvtJjXBGEyRvSERXeAJvxXh9/uYdEsWb1vVjaw4jMiWOtLq/e2LnGvVySVChb2qV imJehXXJqx2Poa1Ja1zh8x4LNAPFfYll74obcpk1npH+Blt+YE48SDkH50FHis6r 8PbASOnFceg5z2YV2gYtEY84vbMfof2KqZqb/w5xNlb6sI4DEzmNKhzHtkjyyd9w ==
- In-reply-to: <20180806092931eucas1p1c89ebf9f2ee4f5bb40ac2c650cf4a6f2~IQZLFzTOa0396203962eucas1p1k@eucas1p1.samsung.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20180806072813.5051-1-av6@dwimlabs.net> <20180806072813.5051-3-av6@dwimlabs.net> <CGME20180806092113epcas2p1be3488679902085a99d66331745e15d4@epcas2p1.samsung.com> <20180806092032.uizmxvlc2oku2ik6@tarpaulin.shahaf.local2> <20180806092931eucas1p1c89ebf9f2ee4f5bb40ac2c650cf4a6f2~IQZLFzTOa0396203962eucas1p1k@eucas1p1.samsung.com>
Peter Stephenson wrote on Mon, 06 Aug 2018 10:29 +0100:
> On Mon, 6 Aug 2018 09:20:32 +0000
> Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
> > To -workers, couldn't we write a wrapper such as the following:
> >
> > _added_matches_p() {
> > local nmatches=$compstate[nmatches]
> > "$@"
> > (( nmatches < $compstate[nmatches] ))
> > }
> >
> > to reduce the need to manage $ret in every single layer of the
> > callstack?
>
> Are you suggesting avoiding looking at the return value, but looking at
> what its effect would have been at the point where you would have looked
> it?
Yes.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author