[Python-Dev] Got None. Maybe Some? (original) (raw)
Guido van Rossum guido at python.org
Mon Dec 22 10:24:30 EST 2003
- Previous message: [Python-Dev] Got None. Maybe Some?
- Next message: [Python-Dev] Got None. Maybe Some?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Is None so weird? All I am proposing is a symmetric value to None. Just like there is a -1 and 1, -Infinity and Infinity, None logically should have Some. Maybe not so much -Some == None, but as I propose in the PEP, possibly Some == not None.
None's purposr is not to be less than all numbers (in fact in the past it wasn't); it's to be "not any object", like nil or NULL in other languages.
I don't see a similar broad role for Some.
And I repeat my question: which other language has that concept?
--Guido van Rossum (home page: http://www.python.org/~guido/)
- Previous message: [Python-Dev] Got None. Maybe Some?
- Next message: [Python-Dev] Got None. Maybe Some?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]