syntax: Disallow using @goto to skip finally blocks#60979
syntax: Disallow using @goto to skip finally blocks#60979IanButterworth merged 5 commits intoJuliaLang:masterfrom
@goto to skip finally blocks#60979Conversation
|
In the unlikely event that pkgeval comes back negative, I will note that it is possible to use syntax evolution to detect the syntax version of the calling module. |
876401f to
993b392
Compare
|
Triage likes this (especially that it parallels goto within try with finally) Triage also thinks that this should probably done via syntax evolution (potentially with a deprecation warning). We built ourselves a mechanism for evolving the language syntax so we should be using it. |
|
@nanosoldier |
|
The package evaluation job you requested has completed - possible new issues were detected. Report summary❗ Packages that crashed281 packages crashed on the previous version too. ✖ Packages that failed18 packages failed only on the current version.
1229 packages failed on the previous version too. ✔ Packages that passed tests8 packages passed tests only on the current version.
5573 packages passed tests on the previous version too. ~ Packages that at least loaded3413 packages successfully loaded on the previous version too. ➖ Packages that were skipped altogether3 packages were skipped only on the current version.
906 packages were skipped on the previous version too. |
|
I looked at all of (these) failures (probably all false alarms); EliminateGraphs | v0.2.1 | fail | test | ▇▇▇▇▇▇▇▇▇▇▇ EliminateGraphs generates a different random graphs, no longer the same (based of rand, likely unchanged, but I'm guessing some numerical inaccuracy follows). MetropolisAlgorithm is about numerical accuracy (slightly changed, likely testing with too strict tolerance) PushVectors is a failed speed test (no longer improving, not a concern) |
|
Great. Regarding the syntax evolution suggestion from triage, I don't know how to do that. Does someone want to take over here? |
|
|
|
Sorry I tried and neither I nor Claude could figure it out. Are there docs? |
|
I'm trying the following prompt: I'd put money on that working, but I'll need to check back in the morning. |
|
I pushed Claude's work to https://github.com/JuliaLang/julia/compare/kf/ib/goto_fixes?expand=1. I didn't review it in detail, but looks about right. |
Add syntax errors when `@goto` is used to jump out of try, catch, or else blocks when a finally block is present. Fixes JuliaLang#60972 Co-Authored-By: Claude <noreply@anthropic.com>
Written by Claude (cherry picked from commit 97371de)
993b392 to
65667d1
Compare
eb3b743 to
bd53cd2
Compare
Add syntax errors when
@gotois used to jump out of try, catch, or else blocks when a finally block is present.Fixes #60972