Question about None

Paul Rubin http
Sat Jun 13 19:55:01 CEST 2009


Paul Rubin <http://phr.cx@NOSPAM.invalid> writes:
> crash, or something like that.  None is a value which in Haskell has a

I got ahead of myself, of course I meant Python (the *next* sentence
was going to mention Haskell).  The corresponding concept in Haskell
is called Nothing, which lives in a type functor called Maybe.  I
don't have time to go into it right now but there is a notion among
language weenies these days that the presence of something like None
(in Python) or Null (in Java, SQL, etc) is a wart in a language and
that it's preferable to have something like Maybe.



More information about the Python-list mailing list