tag:blogger.com,1999:blog-6454006.post556078010678228621..comments2024-01-16T14:32:49.175+00:00Comments on Arcane Sentiment: Is infix lambda hard to read?Arcane Sentimenthttp://www.blogger.com/profile/04144052171693893368noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-6454006.post-61208347203523757982010-10-03T14:47:50.200+00:002010-10-03T14:47:50.200+00:00I, too, find it hard to read.I, too, find it hard to read.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6454006.post-82433259568978577282010-09-23T00:04:11.508+00:002010-09-23T00:04:11.508+00:00I work in C# regularly and I have struggled with t...I work in C# regularly and I have struggled with this as well. The moment of confusion when I first hit the variable is bad, but what is worse are the whiteboard situations when I find myself writing code for people and explaining an idea. I really want the lambda to come first while I'm talking. I find a spoken explanation does not flow while when the infix lambda is used. When possible I even switch to languages with prefix lambda when I need to write code for a group.Benhttps://www.blogger.com/profile/06450697246105004116noreply@blogger.comtag:blogger.com,1999:blog-6454006.post-67746883209694062492010-09-22T09:03:04.141+00:002010-09-22T09:03:04.141+00:00I actually have more reading difficulty with the p...I actually have more reading difficulty with the prefix lambda λx (or \x). It may be related to whether or not parentheses are required in method invocations, and whether commas are expected between arguments. When you have a C-like foo(a, b, c), it's no great shakes to have foo(a => a * 2, b, c) - here, you need look only one lexeme over to see the lambda. Similarly, foo((a, b) => a * b, c, d) is similarly clear - (a, b) can only be a lambda parameter list in idiomatic C#.Barry Kellyhttps://www.blogger.com/profile/10559947643606684495noreply@blogger.com