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

Or "unit" in ML-derived languages and Haskell.


I always think of unit as one - it has exactly one possible value.

Void doesn’t exist in ML


Void definitely exists in ML.

  —- Haskell
  data Void

  (* Standard ML *)
  datatype void = Void of void


log 1 = 0, so it has exactly zero bits of information.




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

Search: