PEP 823 proposes adding two None-aware operators to Python: the ?. operator for attribute access and the ?[] operator for indexing. These operators allow traversal of nested objects with optional None values without raising exceptions, similar to optional chaining in TypeScript, JavaScript, C#, and other modern languages.
PEP 824 proposes adding None-coalescing operators (?? and ??=) to Python 3.16 to provide concise conditional syntax for handling None values, similar to operators already available in TypeScript, JavaScript, C#, and other languages. These operators would simplify common patterns of checking for None and providing default values without repeating expressions or using verbose if-statements.
PEP 824 proposes adding two new operators to Python: the None-coalescing operator (??) and None-coalescing assignment operator (??=). These operators provide a concise way to handle None values similar to operators found in TypeScript, JavaScript, C#, Dart, and other modern languages, reducing verbose conditional checks and improving code readability.
The article critiques 'documentation theater'—creating docs merely to check boxes rather than addressing user needs. It argues that performative documentation done for compliance or following frameworks without purpose is worse than having no docs, and calls on tech writers to prioritize user needs over form and templates.