A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2002-June/025245.html below:

[Python-Dev] Null checking

[Python-Dev] Null checking [Python-Dev] Null checkingDavid Abrahams David Abrahams" <david.abrahams@rcn.com
Mon, 10 Jun 2002 09:33:21 -0400
From: "Tim Peters" <tim.one@comcast.net>

> Different authors.  Guido is omnipotent but not omnipresent <wink>.  It
> would be good (IMO) to expose something like null_error in the public
API,
> to encourage NULL-checking.  I don't know that there's real value in
trying
> to preserve a pre-existing exception, though (if the code is hosed, it's
> hosed).

It depends on whether you intend to make the null checks part of the public
interface. There is a style of programming which says: "write your code
with no error checks, then look at the end to see if something went wrong".
When, as in 'C', you don't have real exception-handling in the language, it
can lead to smaller/more-straightforward code.

-Dave






RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4