[Pycon] [new paper] "Kendrick Tan" - Escaping the hell of the None type checking
info a pycon.it
info a pycon.it
Gio 3 Gen 2019 03:12:10 CET
Title: Escaping the hell of the None type checking
Duration: 45 (includes Q&A)
Q&A Session: 15
Language: it
Type: Talk
Abstract: Any p̶y̶t̶h̶o̶n̶ developer who has programmed before knows how tedious it is to check for None types throughout your program.
Executing an operation on an unexpected None without any checks, and an Exception is thrown - crashing your entire program. A common way to prevent this is by wrapping it in a try-catch statement, though at the cost of program/logic readability.
This begs the question: Can we do better? Is there a better way to abstract to prevent our program from being littered in try-catch statements?
Tags: [u'patterns', u'static-typing', u'python3', u'Python']
Maggiori informazioni sulla lista
Pycon