Skip to content

Conversation

@cfournie
Copy link
Contributor

Lambdas can be very useful but they are "[h]arder to read and debug than local functions. The lack of names means stack traces are more difficult to understand. Expressiveness is limited because the function may only contain an expression."

To limit need to debug lambdas let's encourage them to be simple and to have a maximum number os AST nodes. The default of 15 was chosen arbitrarily.

'finally-too-long',
"The larger the 'finally' body size, the more likely that an exception will be raised during "
"resource cleanup activities."),
'C2611': ('Lambda has %(found)i nodes',

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs updating

@cfournie cfournie merged commit 31b329d into master Mar 14, 2017
@cfournie cfournie deleted the lambdas branch March 14, 2017 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants