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

**URL:** <https://discourse.julialang.org/t/make-julia-s-error-codes-even-better-than-elm-s/87409>\
**Category:** Internals & Design\
**Created:** [September 17, 2022, 4:26pm UTC](https://discourse.julialang.org/t/make-julia-s-error-codes-even-better-than-elm-s/87409 "2022-09-17T16:26:03Z")\
**Posts on this page:** 2\
**Page:** 4

<div class="post-metadata">

**Author:** ![jar1](https://avatars.discourse-cdn.com/v4/letter/j/c0e974/32.png) [@jar1](https://discourse.julialang.org/u/jar1)\
**Post date:** [September 30, 2023, 5:13pm UTC](https://discourse.julialang.org/t/make-julia-s-error-codes-even-better-than-elm-s/87409/64 "2023-09-30T17:13:10Z")

</div>

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.

> <https://twitter.com/ShriramKMurthi/status/1708160052333297678>

---

<div class="post-metadata">

**Author:** ![Sukera](https://avatars.discourse-cdn.com/v4/letter/s/ce7236/32.png) [@Sukera](https://discourse.julialang.org/u/Sukera)\
**Post date:** [September 30, 2023, 5:21pm UTC](https://discourse.julialang.org/t/make-julia-s-error-codes-even-better-than-elm-s/87409/65 "2023-09-30T17:21:59Z")

</div>

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](https://cs.brown.edu/~sk/Publications/Papers/Published/wk-error-msg-classifier/)
> 
> 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](https://cs.brown.edu/~sk/Publications/Papers/Published/wk-error-msg-classifier/paper.pdf)

[Previous page](https://discourse.julialang.org/t/make-julia-s-error-codes-even-better-than-elm-s/87409.md?page=3)
