[bind10-dev] 2009-10-08 BIND 10 meeting
Christos Zoulas
christos at zoulas.com
Thu Oct 8 19:29:13 UTC 2009
On Oct 8, 11:25am, jinmei at isc.org (JINMEI Tatuya / =?ISO-2022-JP?B?GyRCP0BMQEMjOkgbKE) wrote:
-- Subject: Re: [bind10-dev] 2009-10-08 BIND 10 meeting
| At Thu, 8 Oct 2009 10:49:06 -0500 (CDT),
| "Jeremy C. Reed" <jreed at isc.org> wrote:
| >
| > Here are the notes from today's call. Please reply with any
| > clarifications.
|
| > C style comments?
| > jelte sent an email about this
| > jinmei: limit exceptions for bugs
|
| This looks like it's my opinion, but as (I thought) I clarified that's
| my understanding of the previous consensus. I myself see both pros
| and cons of using exceptions and don't have a strong opinion.
My opinion:
1. C style comments, I don't see why not. They are more visually pleasing to me
for long comments.
2. No exceptions at all. Allows code to be compiled with -fno-exceptions
(and since you probably are not going to use rtti -fno-rtti)
which makes the code a lot more efficient and embeddable. Since you
are not going to expose exceptions in the api anyway, why don't
you just abort() on such errors, or log+exit(). Finally c++
exceptions are unchecked and make programming a lot more difficult.
(alexandrescu's c++ 101 rules, guidelines and best practices is
a good reading).
christos
More information about the bind10-dev
mailing list