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

Remove reserved words #66

Open
gluc opened this issue May 24, 2016 · 0 comments
Open

Remove reserved words #66

gluc opened this issue May 24, 2016 · 0 comments

Comments

@gluc
Copy link
Owner

gluc commented May 24, 2016

Currently, you cannot use reserved names as attributes of a Node object. This is a big limitation. Also, it requires lots of checking. For example, Node$new("name") currently works, but gives problems when accessing this node from it's parent.

There is no solution to this. Though a somewhat better approach would define:

  • reserved names start with a .
  • custom attributes can be anything, except they cannot start with a dot

This would also make checking much faster.

Another advantage would be that with code completion (e.g. in RStudio), you could simply type mynode$. and it would list all the non-custom attributes. Currently, these are all mixed, and that is sometimes confusing.

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

No branches or pull requests

1 participant