|
|
|
|
|
by mulander
1864 days ago
|
|
I remember Ada always having very precise and helpful error messages like this one: literal_string.adb:5:33: warning: wrong length for array of subtype of "Standard.String" defined at line 5
literal_string.adb:5:33: warning: "Constraint_Error" will be raised at run time then when you run the app it behaves as advertised $ ./test raised CONSTRAINT_ERROR : literal_string.adb:5 length check failed There are many others and when I saw llvm improving error messages for C and C++ (which I saw happening before Rust was a thing) I always thought it was inspired by Ada and it's helpful messages like: expected private type "<type name>" defined at ...; found type "<type name>" defined at ... "<name>" is undefined (more references follow); possible misspelling of "<name>" and the many others that were just there when I first tried Ada around 2008/2009. |
|