This is an automated archive made by the Lemmit Bot.
The original was posted on /r/programminglanguages by /u/Jonas___ on 2024-09-06 15:39:34+00:00.
I’m debating between two general styles of error messages. What do you think is better?
Option 1 (“rule-oriented”): The error messages states the language rule or limitation that caused the error:
Error: Immutable values cannot be reassigned. Error: A class can only define one base type. Error: A type name can not be longer than 1024 characters.
Option 2 (“action-oriented”): The error message states exactly what went wrong:
Error: Reassigning of immutable value. Error: Class declares multiple base types. Error: Type name is longer than 1024 characters.
What do you think is better?
You must log in or register to comment.