help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-bash] Closure concept in bash


From: Greg Wooledge
Subject: Re: [Help-bash] Closure concept in bash
Date: Tue, 31 Jan 2012 10:35:17 -0500
User-agent: Mutt/1.4.2.3i

On Tue, Jan 31, 2012 at 09:25:54AM -0600, Peng Yu wrote:
> > How very bizarre.  I still don't quite understand the purpose, but I'll
> > set it aside for now.
> 
> Because you don't quite understand the benefit of closure, you have
> the following question.
> 
> The benefit of closure can be understood at least from the perspective
> of refactoring. For example, you have a piece of refactored code that
> uses many variables (say 10). Now you want to encapsulate it into a
> function because you want to iterate through one of the variable.  [...]

So... all this bizarre theory aside... what are you trying to DO?

What GOAL are you trying to accomplish in bash?

What INPUT are you trying to process?  What OUTPUT do you want to produce?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]