Skip to content

Core language: Prompt readers to add two spaces before new line #78

@jsms90

Description

@jsms90

Despite the fact that

over9000 powerLevel =
| if powerLevel > 9000 then "It's over 9000!!!" else "meh"

clearly has a double space before the new line, I (and a few other newbies) didn't register this and struggled briefly with:

over9000 powerLevel =
-- SYNTAX PROBLEM -------------------------------------------- repl-temp-000.elm

The = operator is reserved for defining variables. Maybe you want == instead? Or
maybe you are defining a variable, but there is whitespace before it?

Might be useful just to prompt readers to add the spaces before the new line?

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