News for hackers. Stuff that matters.
Re:The Day Python Embarassed Imperative Programming by sophacles on Monday February 27, 2012 @02:18PM (#3640217)
Wouldn't coding defensively just end up looking like:

   def f(v):
       if v is None: return
       # REST OF f stuff
And say you have other functions g, h, i, ... each one of those would also start with the:

   if v is None: return
portion of the function. This is just a case of DRY.

There are no comments on this comment yet.