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

@noscope macro / changing try scoping rules. #7

Open
c42f opened this issue Aug 12, 2024 · 0 comments
Open

@noscope macro / changing try scoping rules. #7

c42f opened this issue Aug 12, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@c42f
Copy link
Owner

c42f commented Aug 12, 2024

As argued in JuliaLang/julia#39217, it would be nice to be able to opt out of scoping in some cases, in particular try ... catch .. end. Triage liked the @noscope macro: JuliaLang/julia#39217 (comment) and maybe we can implement this in the future.

This may be a 2.0 language feature (see JuliaLang/julia#48434). Though I think we could do this in a 1.x Julia Edition since we can detect any semantic changes using static analysis in lowering and in principle write a refactoring pass (see JuliaLang/julia#54903)

@c42f c42f added the enhancement New feature or request label Aug 12, 2024
@c42f c42f changed the title @noscope macro and changing try scoping rules. @noscope macro / changing try scoping rules. Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant