monotone-devel
[Top][All Lists]
Advanced

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

Re: [Monotone-devel] "throw usage(); " or "N(); " for argument checking?


From: Markus Wanner
Subject: Re: [Monotone-devel] "throw usage(); " or "N(); " for argument checking?
Date: Sun, 04 Jan 2009 19:12:32 +0100
User-agent: Mozilla-Thunderbird 2.0.0.19 (X11/20090103)

Hi,

LeJacq, Jean Pierre wrote:
> Two considerations:
> 
> 1. N() can always be modified to provide an alternate implementation,
>    though I acknowledge that changing from throw semantics
>    would be problematic. For example, adding logging before the throw.

Isn't this exactly what Timothy proposes? Clearer separation of the two.

> 2. N() is not the best choice for handling this to begin with.

Agreed. Timothy proposed using "throw usage();" instead, which is
according to these two requests, AFAICT.

Regards

Markus Wanner




reply via email to

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