You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/pages/blog/the-perfect-bug-report.elm
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -133,19 +133,19 @@ In addition to the debugger, there are some improvements to the error messages a
133
133
134
134
## Improved Error Messages
135
135
136
-
Elm has an [error message catalog][catalog], full of messages that folks thought were confusing for some reason. This is great for constantly improving our error messages! Based on the feedback there, we have a couple nice improvements:
136
+
Elm has an [error message catalog][catalog], full of messages that folks thought were confusing for some reason. This is great for constantly improving our error messages! Based on the feedback there, we have a couple nice improvements. Click the links to see examples!
137
137
138
-
- **Missing Arguments** — Check out the [before and after][137].
139
-
- **Record Precision** — Check out the [before and after][131].
140
-
- **Preserve Names** — You will see `Html msg` instead of `VirtualDom.Node a`.
141
-
- **Type Annotations** — Adding type annotations can [improve errors][154].
142
-
- **Bad Recursion** — Catches definitions that [cannot possibly work][873].
138
+
- [Bad Recursion][e1] — clears up confusion about mutation
139
+
- [Type Annotations][e2] — improves hints when you add type annotations
140
+
- [Missing Arguments][e3] — points out when you forget arguments
141
+
- [Record Precision][e4] — makes hints very specific for large records
These are definitely nice for experts, but I am most excited to see folks learning Elm with these additional hints! Recently, at the first ever [ElmBridge](https://twitter.com/elmlangbridge) event, I saw students running into problems that made me think “Oh, that is tricky, I’m gonna have to help.” But again and again, I was surprised to see that they just figured it out based on the error messages! My intuitions from my TA days and teaching older versions of Elm are not right anymore. Pretty exciting to see!
0 commit comments