Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Yes, and having lambdas and unnamed parameters is a great thing when the local context is enough to explain it.

People are totally okay working with unnamed numbers and values, and it is as important with functions when you program in functional way.

We write

  x2 = x1 + 10
if it makes sense in the context. When it needs a better explanation we name the value

  width = 10
  ...
  x2 = x1 + width
If we would need to name EVERY number, the code would be less readable. Same with the functions, sometimes lambda with unnamed parameters (e.g. $0 < $1) is more readable than naming the lambda and all the parameters. Each name adds a conceptual burden.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: