New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find variable ..- when creating negative ranges #705

Closed
hendore opened this Issue Sep 6, 2016 · 3 comments

Comments

Projects
None yet
3 participants
@hendore

hendore commented Sep 6, 2016

When creating a list with a range of numbers I came across an issue if the "high" number is negative and there isn't a space between range operator and "high" number.

Pasted some example output of the issue.

> [0..5]
[0,1,2,3,4,5] : List number
>
> [-5..0]
[-5,-4,-3,-2,-1,0] : List number
>
> [-10..-5]
-- NAMING ERROR ---------------------------------------------- repl-temp-000.elm

Cannot find variable `..-`

3|   [-10..-5]
      ^^^^^^^
Maybe you want one of the following?

    -
    Basics.-


> [-10 .. -5]
[-10,-9,-8,-7,-6,-5] : List number
@process-bot

This comment has been minimized.

Show comment
Hide comment
@process-bot

process-bot Sep 6, 2016

Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it!

Here is what to expect next, and if anyone wants to comment, keep these things in mind.

process-bot commented Sep 6, 2016

Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it!

Here is what to expect next, and if anyone wants to comment, keep these things in mind.

@lukewestby

This comment has been minimized.

Show comment
Hide comment
@lukewestby

lukewestby Sep 6, 2016

Member

@hendore can you reopen this on elm-lang/elm-compiler? this would be something to address in the parser. issues on core are just for tracking problems and enhancements to the core libraries. thanks!

Member

lukewestby commented Sep 6, 2016

@hendore can you reopen this on elm-lang/elm-compiler? this would be something to address in the parser. issues on core are just for tracking problems and enhancements to the core libraries. thanks!

@hendore

This comment has been minimized.

Show comment
Hide comment
@hendore

hendore Sep 6, 2016

@lukewestby Done, thank you very much for the clarification.

hendore commented Sep 6, 2016

@lukewestby Done, thank you very much for the clarification.

@hendore hendore closed this Sep 6, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment