compiler icon indicating copy to clipboard operation
compiler copied to clipboard

Use a better error when using `true` and `false` instead of `True` and `False`

Open SkyfallWasTaken opened this issue 2 years ago • 2 comments

Quick Summary: ??? When using true instead of True, you get this error:

> true
-- NAMING ERROR ---------------------------------------------------------- /repl

I cannot find a `true` variable:

3|   true
     ^^^^
These names seem close though:

    e
    tan
    turns
    abs

Hint: Read <https://elm-lang.org/0.19.1/imports> to see how `import`
declarations work in Elm.

It should probably recommend using True or False instead.

SSCCE

True
  • Elm: 0.19.1 (I think?)
  • Browser: Firefox
  • Operating System: Pop!_OS

Additional Details

N/A

SkyfallWasTaken avatar Oct 21 '22 11:10 SkyfallWasTaken

Thanks for reporting this! To set expectations:

  • Issues are reviewed in batches, so it can take some time to get a response.
  • Ask questions in a community forum. You will get an answer quicker that way!
  • If you experience something similar, open a new issue. We like duplicates.

Finally, please be patient with the core team. They are trying their best with limited resources.

github-actions[bot] avatar Oct 21 '22 11:10 github-actions[bot]

In general, recommending imported exposed variants as well is helpful

lue-bird avatar Oct 21 '22 11:10 lue-bird