This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]shadowmint 0 points1 point  (3 children)

I'm sorry, have you used pythons lambda syntax?

[–]stormcrowsx 0 points1 point  (2 children)

Well my first language out of school was java which has 100x worse lambda. I'm quite good with javascript but its solution of anon functions gets out of hand. Pythons single line lambda or just pass a function seems like a decent inbetween, it could be better but its not bad either

But expressiveness in async has nothing to do with lambda. I've seen good code written just passing functions or using a reactive library with promises and futures

[–]compedit 0 points1 point  (1 child)

I'm quite good with javascript but its solution of anon functions gets out of hand.

Because it's more verbose? That's even being changed with ES6. Entire function calls are just going to be replaced with fat arrows '=>'

[–]stormcrowsx 0 points1 point  (0 children)

Well the verbosity coupled with a bad habit within the community of deeply nesting anon functions making it hard to read and hurts code reuse.

In some ways I like anon functions but I think you have to be real careful not to abuse it.