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

my and local should be handled as expressions, not toplevel statements #3

Open
leonerd opened this issue Feb 24, 2022 · 0 comments
Open
Labels
OHMAGERD What on earth?

Comments

@leonerd
Copy link
Owner

leonerd commented Feb 24, 2022

The grammar mistakenly believes that my and local assignments are their own kind of toplevel statement, when in fact they are permitted as any kind of expression. It will get very confused on such code as

func(my $one = 1, local $two = 2);
@rabbiveesh rabbiveesh added the OHMAGERD What on earth? label Feb 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OHMAGERD What on earth?
Projects
None yet
Development

No branches or pull requests

2 participants