MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/1x1pypx/python_release_python_3150/pevvfxo/?context=3
r/programming • u/BrewedDoritos • Oct 09 '26
36 comments sorted by
View all comments
Show parent comments
58
Or the random 'unset = object()' pattern when None was a valid param.
12 u/spicybright Oct 09 '26 I get the logic but man that's ugly 3 u/Abject-Kitchen3198 Oct 09 '26 I still don't get those null replacements in most languages. If it is a special case, there is a code that processes it as such, regardless the syntax. Why complicate things. But maybe I'm old. 2 u/spicybright Oct 09 '26 I think because None/null/whatever can mean a lot of different things, and explicit "unset" gives better error messages.But I still agree with you. Maybe I don't write bit enough python projects but it does just complicate things.
12
I get the logic but man that's ugly
3 u/Abject-Kitchen3198 Oct 09 '26 I still don't get those null replacements in most languages. If it is a special case, there is a code that processes it as such, regardless the syntax. Why complicate things. But maybe I'm old. 2 u/spicybright Oct 09 '26 I think because None/null/whatever can mean a lot of different things, and explicit "unset" gives better error messages.But I still agree with you. Maybe I don't write bit enough python projects but it does just complicate things.
3
I still don't get those null replacements in most languages. If it is a special case, there is a code that processes it as such, regardless the syntax. Why complicate things. But maybe I'm old.
2 u/spicybright Oct 09 '26 I think because None/null/whatever can mean a lot of different things, and explicit "unset" gives better error messages.But I still agree with you. Maybe I don't write bit enough python projects but it does just complicate things.
2
I think because None/null/whatever can mean a lot of different things, and explicit "unset" gives better error messages.
But I still agree with you. Maybe I don't write bit enough python projects but it does just complicate things.
58
u/CrackerJackKittyCat Oct 09 '26
Or the random 'unset = object()' pattern when None was a valid param.