Re: svn commit: r26483 - in trunk/subversion: include/private libsvn_fs_util libsvn_wc
From: David Glasser <glasser_at_davidglasser.net>
Date: 2007-09-09 01:33:11 CEST
On 9/6/07, dlr@tigris.org <dlr@tigris.org> wrote:
I'm not really sure how compelling this is: I don't think that
MAYBE_GOTO(cleanup, err);
is actually any clearer than
if (err) goto cleanup;
It's longer, makes the reader think a little more (since it isn't just
On the other hand, a macro that does SVN_ERR-style error variable
MAYBE_CLEANUP(something_returning_error(), cleanup_func);
which expands to
do {
? Except for you'd probably need some sort of context baton, so maybe not...
--dave
-- David Glasser | glasser_at_davidglasser.net | http://www.davidglasser.net/ --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org For additional commands, e-mail: dev-help@subversion.tigris.orgReceived on Sun Sep 9 01:29:51 2007 |
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.