Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Nested function definition question



On 16/07/2019 15:13, Ray Andrews wrote:
On 2019-07-16 1:43 a.m., Nick Cross wrote:


Is there a way of 'inlining' the definition of common in foo so that I
don't have to call it each time? ( but the source can still be
separated out for maintenance purposes )

Why would you want to?  It's interpreted so there'd be almost no
difference in speed even if you did actually inline it, no?  Mind I
suppose if 'common()' was autoloaded there might be a microsecond
improvement but.



I realise its interpreted and it makes little or no difference, it was more out of curiosity ;-)

Nick



Messages sorted by: Reverse Date, Date, Thread, Author