This post originated from an RSS feed registered with Java Buzz
by James Iry.
Original Post: Void vs Unit
Feed Title: One Div Zero - Java
Feed URL: http://james-iry.blogspot.com/feeds/posts/default/-/java
Feed Description: An exploration of software development in Java.
I suspect most people who come to one of the statically typed functional languages like SML, OCaml, Haskell, F#, or Scala will have only seen static typing in one of the popular C derived languages like C++, Java, or C#. Some differences in type system become clear fast. One particular spot is the relationship and difference between void and unit.So imagine your favorite C derived language.