[Tutor] Is nesting functions only for data hiding overkill?

Cameron Simpson cs at cskk.id.au
Thu Aug 22 02:05:39 EDT 2019


On 22Aug2019 00:53, James Hartley <jjhartley at gmail.com> wrote:
>Yes, nesting functions is valuable & necessary for closures and wrapping
>functions for creating properties.  But is nesting, simply for hiding data,
>a preferred solution?  I have a number of member functions which are
>prefaced with underscores pointing out that they should not

I think you're not using "nesting" the way I think of it. Can you 
provide an example bit of code illustrating what you're thinking of and 
explaining your concerns? Also, your paragraph looks a little truncated.

Cheers,
Cameron Simpson <cs at cskk.id.au>


More information about the Tutor mailing list