nested functions

Richard Kreiss rkreiss at verizon.net
Wed Feb 25 14:43:35 PST 2015



> -----Original Message-----
> From: Filepro-list [mailto:filepro-list-
> bounces+rkreiss=verizon.net at lists.celestial.com] On Behalf Of Kenneth
Brody
> Sent: Wednesday, February 25, 2015 2:53 PM
> To: Richard Kreiss; filepro-list at lists.celestial.com
> Subject: Re: nested functions
> 
> On 2/25/2015 11:53 AM, Richard Kreiss wrote:
> > This may be a Ken question:
> >
> > I recently needed to pass a name from one file record to a process in
> > another process.  This was done by passing the command line to a
> > system call and using -ry with the name from the record.
> >
> > However, this proved to create a problem as there was a space between
> > the first and last name.  Only the first name was being passed by -ry.
> > My fault.  I then added a comma to the name value and created
> > programming to remove the comma.
> 
> Put the parameter in quotes:
> 
>      -ry "Bob   Smith"

Ken, I was avoiding of "playing" with quotes inside of quotes.  Although
this is probably a better solution.


> 
> [...]
> > My question is how complex can one use before filePro has a problem
> > handling it. (assuming that the functions are used properly)
> 
> What do you mean by "how complex can one use"?

Your response below answers the question, keep the programming line simple
unless is going to be executed a great number of times.

In this case,  the line is executed once.

Thanks,

Richard

> 
> > The next question, for clarity in programming is the programmer better
> > off keeping things simpler?
> 
> Unless there is a compelling need, such as "this line is going to be
executed a
> million times, so shaving a millisecond per iteration really adds up",
then you're
> probably better off with clear code than complex (but "faster", or
"tighter")
> code.
> 
> --
> Kenneth Brody
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> Subscribe/Unsubscribe/Subscription Changes
> http://mailman.celestial.com/mailman/listinfo/filepro-list



More information about the Filepro-list mailing list