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:
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.
[ Parent
| on HN ]
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"