RE: svn commit: r884250 - /subversion/trunk/subversion/libsvn_fs_fs/fs_fs.c
From: Bert Huijben <bert_at_qqmail.nl>
Date: Mon, 21 Dec 2009 16:23:59 +0100
> -----Original Message-----
Assertions are not nice to library users. (Not everybody uses 'svn' as his/her subversion client). An assertion/abort in release code will most likely make my users loose at least some of their work.
I don't know if this case is user and or network triggerable, but littering our code with assertions makes our code slow and easier to crash, while the error return method was designed to be more graceful.
I guess this code is server side. For this case errors are transferred to the client, while a server assertion will only be visible as 'connection closed unexpectedly' or something similar.
Maybe assertions and aborts are easier for Subversion developers, but they are not for our users.
Bert
|
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.