This is the mail archive of the gsl-discuss@sources.redhat.com mailing list for the GSL project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: GSL Error Handling


"Gregory R. Warnes" wrote:

> Yes, it is difficult to do this properly
> using "obsolete" languages (C, Fortran, etc.)
> That's why I wonder about the choice
> to do GSL in C rather than in C++ or Java;^)

It really doesn't matter which language you use to implement the GSL
but there probably should be language bindings
for Fortran 90, Ada 95, C++, Java, etc.

> The try-catch mechanism in C++ (and Java)
> is designed to allow a great deal of interaction in the case of errors
> without hampering the efficiency and clarity of the normal code path.

No.  You're still confused about the difference
between programming errors and exceptions.
The exception handling mechanism implemented in C++ and Java
is very expensive and you want to avoid it whenever possible.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]