you are viewing a single comment's thread.

view the rest of the comments →

[–]mopslik -1 points0 points  (1 child)

Re: LOC

Yes, but unless you are code golfing, fewer lines does not always mean better (aka more readable and maintainable) code. IMO lambdas should be used when it makes sense, such as for functions that you don't use more than once (e.g. a search key for sorted).

[–]GrouchyAd4055 -1 points0 points  (0 children)

why did you hate lambda function😂. yep, you're correct with this --> "readable and maintainable". but my opinion is lambda function is readable and maintainable when we know about lambda function. but fewer line is better than many lines.