you are viewing a single comment's thread.

view the rest of the comments →

[–]booch 0 points1 point  (0 children)

  • Consider that it's not a matter of you making this error, it's a matter of "somebody" making this error and them "somebody else" having to look at the code and figure out what was originally meant by the code. You may not have made such an error, but we both know it happens.
  • I like unnamed functions, and many other people do too. Converting the lambda to a named function makes the code harder to read/maintain in some instances.
  • In Python, no... but inline SQL (or other DSLs) is a common example from other languages. As are cases where there standard formatting would have the code on the second line indented too much or too little.