Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upSingle-line comments beginning next to some symbols trig parse errors #339
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
|
Duplicate of elm/compiler#894, unneeded |
eeue56
closed this
Aug 9, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
eeue56 commentedAug 9, 2015
Using the single line comment syntax
--before symbols such as<|or|>makes Elm think that it's a name instead of commenting out the rest of the line.Example:
main = show <| zip [1, 2, 3] [4, 5, 6] --<| 5 + 6will throw the following error:
Expected behaviour:
It should comment out the rest of the line. If this isn't possible due to the valid use of
-within names, then the error throw should be more descriptive - perhaps something along the lines of "If you are trying to comment out the rest of the line, put a space between--and the symbol<|"