bug-gnustep
[Top][All Lists]
Advanced

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

Re: NSSavePanel complains about .hidden


From: Nicola Pero
Subject: Re: NSSavePanel complains about .hidden
Date: Mon, 7 Oct 2002 03:31:05 +0100 (BST)

> > That's not true. init methods are not supposed to generate an exception, 
> > they are supposed to log an error, release the object and return nil (at 
> > least the way we currently specify it, see 
> > http://www.gnustep.org/resources/documentation/coding-standards_5.html#SEC5 
> > - if we want to change that, it's a different matter).
> 
> Ok - you're probably right about init and the <pedantic> discussion was
> just pedantic :-) - but I didn't know about that section nor that raising
> exceptions in -init was forbidden, is this 'coding practice' a new
> addition ?
> 
> I don't like it.  The whole section I mean.

Well - no - I don't want to be that negative :-)

I could be very good with just some little adjustments.

I'd suggest to put into it a bit of the philosophy that -

 - an exception is a very good way of reporting some errors to the caller

 - NSLog is a very bad way of reporting errors to the caller, unless the
library is running in debugging mode

Sorry - being tired - I don't want to seem un-cooperative just because of
that ... it's "negotiable" :-)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]