Skip to content

User accidentally uses a unicode long dash instead of ASCII dash to type a comment #1600

Open

Description

@codeworld-feedback

Program: https://code.world/#PZlG63CKkE4qHAVKmNDrCUA

Message:

program.hs:5:34-38: error:
    • Missing punctuation before this expression.
      Perhaps you forgot a comma, an operator, or a bracket.
    • To multiply, please use the * operator.
      For example: base * image
    • To apply a function, add parentheses around the argument.
      For example: base(image)

Activity

  1. cdsmith commented on Feb 20, 2023

    @cdsmith
    Collaborator

    Interesting. This person has used −− instead of -- to introduce a comment, and got a syntax error as a result. Perhaps we can do something, either by sanitizing non-ASCII characters that are very similar to ASCII in copy and paste, or at least an explanatory error message, to indicate what the problem is.

  2. changed the title [-]User-reported unhelpful error message[/-] [+]User accidentally uses a unicode long dash instead of ASCII dash to type a comment[/+] on Feb 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    error-messageError message that could be better

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions