3 ms·
how does scala handle the case where the order of arguments to the lambda is not the same as the order in which they appear in its body?
by zem 16y ago
how does scala handle the case where the order of arguments to the lambda is not the same as the order in which they appear in its body?
- KirinDave 16y agoIt doesn't. Use a real lambda. Why? See: http://news.ycombinator.com/item?id=2468038 http://news.ycombinator.com/item?id=2468038
- awj 16y agoI've seen too much code where lambdas do little more than twiddle argument orders. I'd rather pay a tiny bit more visual weight for straightforward argument usage and be able to use the same tool to reorder them. The Scala version seems (to me) like it praises its own purity over day-to-day utility.