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

fix: rename reserved keywords #2992

Merged
merged 1 commit into from
Mar 12, 2024
Merged

fix: rename reserved keywords #2992

merged 1 commit into from
Mar 12, 2024

Conversation

mwdchang
Copy link
Member

@mwdchang mwdchang commented Mar 12, 2024

Summary

We cannot use reserved keywords as left-hand-side assignments, such as lambda. This is a problem because we are building a symbolics lookup table: { v1 => 321, v2 => 123 ... } and the key cannot be reserved keyword in the language such as "lambda".

This PR works around the issue of mass evaluation by appending an underscore suffix.

image

Testing

Models with "lambda" in one or more of its expressions will not error out in the Funman operator.

@mwdchang mwdchang merged commit 37cddfc into main Mar 12, 2024
5 checks passed
@mwdchang mwdchang deleted the python-lambda branch March 12, 2024 18:44
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

Successfully merging this pull request may close these issues.

2 participants