std.unittests/exception Update and Vote

Lars T. Kyllingstad public at kyllingen.NOSPAMnet
Tue Feb 8 04:40:04 PST 2011


On Tue, 08 Feb 2011 03:52:30 -0800, Jonathan M Davis wrote:

> *Sigh* I was hoping for a clearer vote than this.
> 
> assertThrown, assertNotThrown, and collectExceptionMsg are clearly in,
> but the vote on assertPred is not so clear.
> 
> No
> ---
> Brad Roberts (I appeared to be against but didn't vote outright) David
> Nadlinger
> Don
> Jim? (I _think_ that he was voting no, but he didn't seem to think that
> he could vote)
> Michel Fortin
> SHOO
> Spir
> 
> Yes
> ---
> Andrei Alexandrescu (at least he was until the most recent discussion on
> improving assert)
> Andrej Mitrovic
> Andrew Wiley
> Jens Mueller
> Lars T. Kyllingstad (from his comments, he appears to be in favor, but
> he never outright voted)

Sorry, forgot to place my vote.

I am definitely in favour of adding assertThrown, assertNotThrown and 
collectExceptionMsg, but as of lately I'm on the fence regarding 
assertPred.  If it turns out to be both possible and desirable to improve 
the messages produced by built-in assert, that may be better.  I'd like 
to see how that plays out before placing a definitive vote.

Also, if it turns out only the exception-related stuff goes into Phobos, 
maybe std.exception will be the best place to put it after all?

-Lars


More information about the Digitalmars-d mailing list