2010/3/28 Lisa Vitolo <syn.shai...@gmail.com>

> Eventually, we can wrap this entire system in a macro or function
> CHECK_ERROR that takes the return value of a function and throws the
> appropriate exception if necessary.
>
> Usage example:
> try
> {
>    CHECK_ERROR(bind(...));
> } catch ...
>

Hmm, I think that this would be unreadable in the long run. Better, IMHO, to
write simple functions to accomplish basic tasks, and those will be bearing
the responsibility to check for errors and throw related exceptions when
necessary. (In other words: we don't check every time the single "bind()"
call, but we invoke a wrapper, otherwise it would bring no real advantages.)

The rest seems fine to me.
Good work! :-)

Reply via email to