[fpc-pascal] flag or exception?
Michael Van Canneyt
michael at freepascal.org
Fri Sep 1 14:13:33 CEST 2006
On Fri, 1 Sep 2006, Bisma Jayadi wrote:
> Hi all...
>
> I've always been confused about this subject... flag or exception for error
> handling? Can anyone share knowledges and ideas about when and where and why
> a (pascal) developer should chose one over another?
This is highly developer dependent.
I personally prefer exception-based code.
I find it more clear and readable (less IF's), and more structured
(easier cleanup in case of error, etc.)
But this is a personal opinion.
Michael.
More information about the fpc-pascal
mailing list