3 ms·
The parent comment about private naming convention is a red herring. 99% of the time in places where you might use a multi-line anonymous function you're alrea
by anentropic 8y ago
The parent comment about private naming convention is a red herring.
99% of the time in places where you might use a multi-line anonymous function you're already inside another function
So when you define your named function in Python, it is only available within the scope of the current method call and there's no danger of it being abused by other developers.
The lack of true private vars in python is a separate issue, and one of the best things about the language (because library authors inevitably get carried away and mark things as private which don't need to be - then you're stuck in copy & paste land... I did loads of ActionScript back in the day and this was super frustrating)