[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [Nbd] [PATCH 1/1] server: remove non-reachable call to err()



On Sun, Mar 10, 2013 at 10:15:07PM +0100, Wouter Verhelst wrote:
> 
> Mmm. Checking for programmer error isn't necessarily a bad idea, though.
> Yes, it's best done at compile time, but that isn't always possible.
> 
> Perhaps change it into an assert() instead?
> 

Very well, assert() might be a good idea and I even thought it for a
second or two, but then the pedantic side of me took
over. Assert-statements do burn my eyes, you know. But that should be
easily fixed by wearing PRAGMATISM-protective glasses more often while
coding.

-- 
Tuomas



Reply to: