From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24469 invoked by alias); 30 Sep 2015 15:48:26 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 20670 Received: (qmail 588 invoked from network); 30 Sep 2015 15:48:24 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.0 X-Authority-Analysis: v=2.1 cv=X+5rdgje c=1 sm=1 tr=0 a=62AtbbSsrca3scplPJj5lw==:117 a=62AtbbSsrca3scplPJj5lw==:17 a=gH2l33NO9zgA:10 a=Fdkxr_5KmFUA:10 a=7SqRE8U93oY8LVi-kdEA:9 a=pvA44qeTxYYA:10 Message-id: <560BFD3C.6090300@eastlink.ca> Date: Wed, 30 Sep 2015 08:18:20 -0700 From: Ray Andrews User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Icedove/31.7.0 MIME-version: 1.0 To: zsh-users@zsh.org Subject: Re: wheels within wheels References: <55FAE223.2080502@eastlink.ca> <150917103419.ZM10067@torch.brasslantern.com> <150918171441.ZM27212@torch.brasslantern.com> <55FD7982.9030505@eastlink.ca> <150919092922.ZM28214@torch.brasslantern.com> <55FDA5D3.9020304@eastlink.ca> <150919142243.ZM23634@torch.brasslantern.com> <55FE04AD.1070304@eastlink.ca> <150919224120.ZM4736@torch.brasslantern.com> <55FF3F7E.4060906@eastlink.ca> <150920211840.ZM31871@torch.brasslantern.com> <5600386E.7060201@eastlink.ca> <150921111746.ZM388@torch.brasslantern.com> <56006401.5060902@eastlink.ca> <150921201943.ZM707@torch.brasslantern.com> <560B1BE7.8020507@eastlink.ca> <150929204047.ZM9646@torch.brasslantern.com> <560B61C5.2080001@eastlink.ca> <357101443600080@web28g.yandex.ru> In-reply-to: <357101443600080@web28g.yandex.ru> Content-type: text/plain; charset=koi8-r; format=flowed Content-transfer-encoding: 7bit On 09/30/2015 01:01 AM, ZyX wrote: > Nested *same* function definition is rather useful for initialization. Or when you need to alter the implementation based on some condition, and want to cache this to not check this condition again: Sure, I see that this sort of thing has it's power. But this discussion has mostly involved redefining a function within itself, not defining function A within function B so Kurtis' comments are still cogent. I'm looking at Sebastian's curses stuff and he does have nested definitions so I'm curious as to the reason. > And this is *not* a zsh koan. I just meant that Bart's example was a powerful and pointed demonstration of the right way of seeing the issue.