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

Consider using dsl function names closer to their generated counterparts #57

Open
GlassBricks opened this issue Jul 24, 2020 · 0 comments

Comments

@GlassBricks
Copy link

GlassBricks commented Jul 24, 2020

There is already If for generating if statements (avoiding the keyword). There could similarly be When for when statements instead of switch, and Do/While instead of doRepeat/repeatWhile, etc.

This would make it more obvious and easier to remember what dsl function corresponds to what output.

Other possibilities to consider:

  • Class/Interface
  • Val, Var, Fun
  • For instead of foreach
  • ElseIf/Else instead of 'orElseIf' and 'orElse'
  • get/set instead of getter/setter (get and set are soft keywords)
  • etc.
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