Jacob Carlborg wrote:
foo(x, y => x * y);
The problem with all these is what is the difference between: { x * y } { x * y; } <== note the ; { return x * y; } The C++ lambda group had the same discussions.It may not seem like much when the code is trivial, but when it gets more complex, having 2 or 3 different syntaxes for function bodies seems like a confusing disaster in the making.