Skip to content

syntax conflict between if expression and struct value expression #39

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

Closed
andrewrk opened this issue Dec 26, 2015 · 0 comments
Closed

syntax conflict between if expression and struct value expression #39

andrewrk opened this issue Dec 26, 2015 · 0 comments
Labels
bug Observed behavior contradicts documented or intended behavior

Comments

@andrewrk
Copy link
Member

if guess < answer {

}

Parser thinks answer { is a struct value expression.

Possible resolutions:

  • re-introduce ( and ) in block expressions
  • change struct value expression syntax somehow
  • require types to begin with an upper case letter and variables to begin with a lower case letter
@andrewrk andrewrk added the bug Observed behavior contradicts documented or intended behavior label Dec 26, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Observed behavior contradicts documented or intended behavior
Projects
None yet
Development

No branches or pull requests

1 participant