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

Handle parameter name conflict with Python keywords #7

Open
gaow opened this issue Oct 6, 2020 · 1 comment
Open

Handle parameter name conflict with Python keywords #7

gaow opened this issue Oct 6, 2020 · 1 comment

Comments

@gaow
Copy link

gaow commented Oct 6, 2020

For example, a module parameter lambda is going to trigger an error message because it conflicts wiht Python
s labmda function.

We can definitely ban people from using parameters that conflicts with Python. But for R users, the lambda keyword is very innocent so disallowing users to use parameters like this seems a bit limiting.

We may do something on the parser's end to remove this restriction? For example instead of putting:

lambda = 1

in DSC generated script, we always wrap it to a dictionary, eg

DSC_DATA['lambda'] = 1
@gaow
Copy link
Author

gaow commented Oct 6, 2020

@lmxy0212 here is one parser & syntax issue. I'll post more here. It would be helpful if you watch this repository (button on top right corner of the github repo page) so you get email notifications.

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