Skip to content
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

use capitalized variable only as data constructor #27

Open
m-shaka opened this issue Jul 29, 2019 · 2 comments
Open

use capitalized variable only as data constructor #27

m-shaka opened this issue Jul 29, 2019 · 2 comments
Labels

Comments

@m-shaka
Copy link
Contributor

m-shaka commented Jul 29, 2019

Like Haskell and Elm. For example, statements below should raise an error.

Hoge  = "hoge"

In Haskell, the error is semantic one, i.e. "not in scope" error, while in Elm is syntactic one (parse error).

@kirisaki
Copy link
Contributor

I was thinking about what deal it.
The parser doesn't pass not capitalized data constructor,
so I suppose this problem has low priority.

@kirisaki
Copy link
Contributor

kirisaki commented Oct 2, 2019

I'm rewriting the parser, and I want to separate them...
Though, I should pass the tests first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants