MutterCorp
MutterCorpNotice · Notícias
Programação·

Python's None-Aware Operators: Yes to Coalescing, Careful With Access

Python's None-Aware Operators: Yes to Coalescing, Careful With Access

Python has been without a ?. and a ?? for the whole of its life, and every few years someone proposes them and the argument runs out of steam. This time looks different. Two draft PEPs, written by Marc Mueller and sponsored by Guido van Rossum, target Python 3.16, and the discussion threads have been busy since September. My position after reading both: I want ?? badly, and I'd use ?. about once a week. The first proposal, PEP 823, adds the None-aware access operators ?. and ?[ ]. The second, P…

Publicado no Notice. Categoria: Programação.

Notícias sobre o mesmo assunto em outras fontes