Make Julia’s Error Codes Even Better Than Elm’s

This is a good Twitter thread on error messages. The point is that most errors are when A and B are inconsistent with each other, so it’s best to explain A and B don’t go together instead of complaining only about B. More details in the thread.

1 Like

This paper (linked at the end of the thread) may be especially interesting:

Error Messages Are Classifiers: A Process to Design and Evaluate Error Messages

This paper presents a lightweight process to guide error report authoring. We take the perspective that error reports are really classifiers of program information. They should therefore be subjected to the same measures as other classifiers (e.g., precision and recall). We formalize this perspective as a process for assessing error reports, describe our application of this process to an actual programming language, and present a preliminary study on the utility of the resulting error reports.

PDF

5 Likes