Skip to content

Add flag to skip evaluation of literals in Context #189

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

Merged
merged 3 commits into from
Mar 26, 2024

Conversation

fedme
Copy link
Contributor

@fedme fedme commented Mar 26, 2024

Expression v1 evaluates every literal in Context and parses strings resembling booleans (e.g. "True") into booleans and strings resembling numbers (e.g. "123") into numbers.

That's not what we always want, in fact we don't do that anymore in Expression V2. This PR adds an optional flag to Expression.Expression.evaluate_block! that allows turning off the automatic parsing of the Context literals.

Copy link

@fedme fedme requested a review from smn March 26, 2024 17:02
@fedme fedme merged commit 25ee902 into develop Mar 26, 2024
2 of 3 checks passed
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