News for hackers. Stuff that matters.
Re:"..best direction for evolving Java is to encourage a mor... by jawher on Friday August 19, 2011 @09:44AM (#2903322)
Even Java has the Void type, meaning you can write:

    Function<Void>
It's a bit shady though as you still have to return a value from the body of the method, and that value has to be null.
Re:"..best direction for evolving Java is to encourage a mor... by StrawberryFrog on Friday August 19, 2011 @09:56AM (#2903357)
That sort of this is also easy to do in C# or any strongly typed language. Similar things in c# are the DBNull type which "Represents a nonexistent value" from a database (http://msdn.microsoft.com/en-us/library/system.dbnull.aspx ) and Type.Missing which "Represents a missing value in the Type information"
Re:"..best direction for evolving Java is to encourage a mor... by masklinn on Friday August 19, 2011 @10:48AM (#2903544)
> It's a bit shady though

'bit of an understatement there.