-
Notifications
You must be signed in to change notification settings - Fork 5
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
Monitor Alias Experiment #27
Comments
https://tip.golang.org/ref/spec#Alias_declarations Alias declarations An alias declaration binds an identifier, the alias, to a constant, type, variable, or function denoted by a qualified identifier and declared in a different package.
The effect of referring to a constant, type, variable, or function by an alias is indistinguishable from referring to it by its original name. For example, the type denoted by a type alias and the aliased type are identical. An alias declaration may appear only as a form of constant, type, variable, or function declaration at the package level, and the aliased entity must be a constant, type, variable, or function respectively. Alias declarations inside functions are not permitted.
An alias declaration may not refer to package unsafe. |
It appears that aliases won't be implemented by 1.8 anymore: golang/go#16339 (comment) |
They've been implemented as "type aliases" in Go 1.9: |
Thanks for the reminder, and this should've been implemented a while ago. It's back on my radar, I've looked at it before and it appeared straightforward. |
This may have far reaching consequences, or may not at all.
There's at least appears to be added
ast.AliasSpec
.See CLs related to golang/go#16339
The text was updated successfully, but these errors were encountered: