Re: [julia-users] Is there a performance penalty for defining functions inside functions?

2016-03-29 Thread Mauro
In 0.4 it is slower but this is fixed in 0.5. So I think this style is fine unless you need fast on 0.4 now. On Tue, 2016-03-29 at 18:31, Evan Fields wrote: > To keep namespaces clear and to help with code readability, I might like to > do this: > > function

[julia-users] Is there a performance penalty for defining functions inside functions?

2016-03-29 Thread Evan Fields
To keep namespaces clear and to help with code readability, I might like to do this: function mainFunc() function helper() do stuff return something end call helper() and do stuff return something end That way the helper function is only visible to the function