On Thu, Mar 28, 2024 at 6:02 PM Ralf Hemmecke <[email protected]> wrote:
> > > OK the answer to the above is not soo important to me, but I think Greg > is right that the builtin 'error' should automatically show the function > name in which it is called. Doesn't the compiler have all this information? > > Such an improvement would really be great. > The compiler should have enough information to generate appropriate code for the builtin function error to be able to generate the domain/category/package specification as well as the function in which the builtin function is called as well as the relevant parameters used for the calling function. The code generation phase of the compiler should be able to generate relevant code that obtains all the necessary runtime information and display it. It is far better to get more information relating to the error than less. More helpful information reduces the time it takes to work out what has gone wrong and what you need to fix that specific error. Yes, I do understand just how much work is involved in doing this and yes many people do not see the need for this level of work until it comes and bites them on the posterior. If that information is not there, users quickly get frustrated (especially new users) and it is always good to have new users picking up your systems and becoming enthusiastic proponents of the system. If you go through all calls to error in the FriCAS code base, the current error messages are often quite cryptic and of little help in analysing any problem that does arise. Since error messages are not the normal mode of operation, any system generated code for enhancing error messages will not/should not affect any of the normal code being run and should not affect how fast the normal mode code runs. If this is left to the programmer to adjust the various error messages throughout the code base, this will be a very large task. > Ralf > > -- > You received this message because you are subscribed to the Google Groups > "FriCAS - computer algebra system" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/fricas-devel/9af94552-a290-4e14-b9d4-b72b4950dd8e%40hemmecke.org > . > -- You received this message because you are subscribed to the Google Groups "FriCAS - computer algebra system" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/fricas-devel/CAEnaMTF9T%3DbDD7tY0uPeJOF%2BiJh3z7p8JfxnvA_9vDZLwmfTdg%40mail.gmail.com.
