In article <7xhbxtjxtn....@ruckus.brouhaha.com>,
Paul Rubin  <http://phr...@nospam.invalid> wrote:
>Simon Forman <sajmik...@gmail.com> writes:
>> 
>> (I like Haskell's Maybe, but saying A is better than B doesn't imply
>> that B is therefore terrible.)
>
>I wouldn't say Python's None is terrible, but the programming style in
>which None is used as a marker for "absent value" is genuinely a
>source of bugs, requiring care when used.  Often it's easy to just
>avoid it and all the bugs that come with it.
>
>Haskell's Maybe type, ML's Option type, and various similar constructs
>in other recently designed languages all are responses to the
>shortcomings of None-like constructs in older languages.  I'm not
>going purely by that one guy's blog post, though I do think that post
>was pretty good.

AFAICT, in order for Maybe and Option to work, you need to have some
kind of static typing system.  Am I missing something?
-- 
Aahz (a...@pythoncraft.com)           <*>         http://www.pythoncraft.com/

"as long as we like the same operating system, things are cool." --piranha
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to