Right now when something goes wrong with a function call, the error symbol 'cannot-apply is emitted. Although this is correct by spec, I'd like us to do better.
I'd like to have the following error message:
- The source code that went wrong
- An arrow or some kind of marker pointing to the operator that couldn't be applied
- Line and column (hm, maybe only important when it's not the REPL)
- Some more detailed explanation in polite, empathic English
- A suggestion of what to do to make things right
Ideally this should go for all error messages emitted by spec, but let's start here.
Right now when something goes wrong with a function call, the error symbol
'cannot-applyis emitted. Although this is correct by spec, I'd like us to do better.I'd like to have the following error message:
Ideally this should go for all error messages emitted by spec, but let's start here.