Andrei Alexandrescu wrote:
So one would write:method fun() { 42 } to return an integer, and method fun() { 42; } to return void.
I've seen this proposed for both C++ function literals and for D function literals. I'm surprised any language followed through with it. It's awful.