Skip to content

Improve error message mechanism #18

Open
@masak

Description

@masak

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions