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

ensure eval is always called in scalar context (#2051) #2052

Merged
merged 1 commit into from
Mar 16, 2023

Conversation

Grinnz
Copy link
Contributor

@Grinnz Grinnz commented Mar 16, 2023

Summary

eval in list context returns empty list when it fails, not undef. List context includes "use constant" because list constants unfortunately exist.

Motivation

We want to ensure no danger of bugs due to context sensitivity.

References

#2051

Copy link
Member

@jhthorsen jhthorsen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@mergify mergify bot merged commit addf3ca into mojolicious:main Mar 16, 2023
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.

3 participants