[back]
C# lambda operator
I feel that Microsoft .NET creators could have come up with a better operator for lambda expressions than =>. The reason for this is that under certain circumstances, lambda expressions can be made to look goofily. Here's an example:

Func<long, bool> lambda = x => x <= 3;


I think that my problem with this syntax is that the = sign is already overloaded quite a bit. We use it for assignment, as well as ordinal and equality comparisons, such as <= and >=.
-> would be a great one, but, unfortunately, is taken.

I think a better operator could have been -->, improving, in my opinion, the appearance above statement:

Func<long, bool> lambda = x --> x <= 3;