-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/gc: name closure for outer function #8291
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
Labels
Milestone
Comments
Issue #8943 has been merged into this issue. |
I agree this change would help readers of the output of various static and dynamic analyses. May I humbly suggest following the naming convention used by the SSA builder? f$1 for the first function literal within function f. f$1$2 for the second function literal within f$1, etc. init$1 for the first function literal among the package's variable initializer expressions. init#1 for the first declared init function in the package. etc. |
> There's no need for $ and #. A simple . will work just fine. Ok, one of them could be replaced by a dot, and I'll make go/ssa consistent with whatever you ultimately go with, but you want to distinguish "the first declared init function" from "the first lambda in a variable initializer", don't you? |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
by Matthew.Horsnell:
The text was updated successfully, but these errors were encountered: