Name: Anonymous 2009-02-13 17:51
Fortransexuals
Maybe<T>, and I haven't used it myself, so I assumed it could work like Nullable<T> with the ?? operator.Maybe<T> actually do?Maybe, except defined for reference types too.
Maybe does?Nullable<T>. It's either a wrapped value, or a null in Haskell, because then you would have to check for null values in every goddamn function, which is stupid. Better to have the type system check it at runtime.
data Bool = True | False
-- ACTUAL DEFINITION IN THE HASKELL SOURCE CODE
data Maybe t = Just t | NothingNothing is Haskell-ese for null. Just t is Haskell-ese for "an arbitrary value that isn't null." Because the actual value you want is hidden inside the Just function, any time you're dealing with a value that might be null, it's impossible to do anything with it unless you check whether it's null.
null in Haskell, dumbfuck. You use it when you work with pointers (which normally is as rarely as you can).
*haskell = 0;
haskell = []
null haskell
True