As u/energybased already mentioned, None doesn't always work as a sentinel.
For example, when None is a valid value itself – how do you distinguish None-as-sentinel from None-as-value? This isn't necessarily common in user code, but happens quite a lot in libraries (when you want to allow the user to use None); I talk more about this in a comment below.
View all comments
Show parent comment
1
u/Deto Jun 06 '21
With the use of, for example None, as a a sentinel couldn't you just use a Union type signature?