Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Yes, totally. The same in java and c# too.

That's why I said void is "more or less like a type" and asked about "unit" as a "first class void" - i.e. a "void" that is a real type that works like other types.



Well, in Java you have http://docs.oracle.com/javase/7/docs/api/java/lang/Void.html

Not exactly first-class but useful at times.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: