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

Syntax improvements #3

Open
4 of 11 tasks
liangyuanruo opened this issue Feb 20, 2024 · 0 comments
Open
4 of 11 tasks

Syntax improvements #3

liangyuanruo opened this issue Feb 20, 2024 · 0 comments

Comments

@liangyuanruo
Copy link

liangyuanruo commented Feb 20, 2024

Syntax/keyword improvements

  • Change “var” to “let”?
  • Change “nil” to “null”
  • Change “fun” to “function”
  • Use “extends” keyword for inheritance
  • Change “or” and “and” to “||” and “&&” (WIP in refactor/logical branch)
  • Add "++" and "--" unary ops
  • Add “new” keyword
  • Drop need for semi-colon “;”
  • Convert print statement to print function
  • Introduce “break” statement in while loops
  • Change “init” to “constructor”
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant