Currently, if you have compile-time detected errors, you get an error returned from compile_messages, and also a run-time error every time that message is used. This has some advantages:
If you are not reporting compile-time errors but only run-time ones, you still get all the errors
You get usage statistics with error logs, so that messages that are rarely or never used will be de-prioritised.
But there are disadvantages too:
Reporting exactly the same error multiple times when once would do.
Run-time performance hit for the error reporting.
So we should have an option to compile_messages to disable run-time reporting for compile-time errors.
Currently, if you have compile-time detected errors, you get an error returned from
compile_messages
, and also a run-time error every time that message is used. This has some advantages:But there are disadvantages too:
So we should have an option to
compile_messages
to disable run-time reporting for compile-time errors.