codept icon indicating copy to clipboard operation
codept copied to clipboard

Make codept as a library (4/n)

Open dinosaure opened this issue 2 years ago • 2 comments

About the fault.ml module, it has the ability to terminate the program when a critical error occurs. In the design of a library, it would be healthier to throw an exception so that the user can decide whether the program should terminate or not. How about throwing an exception instead of "exit 1" and documenting that it indicates a critical error?

dinosaure avatar Mar 24 '23 15:03 dinosaure

Throwing a Abort exception and installing an exception handler in an executable sounds healthier indeed.

Octachron avatar Mar 24 '23 15:03 Octachron

Another point is about the formatter used by fault.ml. Actually, codept arbitrary uses stderr. As a library, it will be nice to set the formatter according upfront configuration.

dinosaure avatar Jun 05 '24 09:06 dinosaure