One year of Go

Walter Bright newshound2 at digitalmars.com
Fri Nov 12 10:15:34 PST 2010


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.


More information about the Digitalmars-d mailing list