-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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
Go 2: Make life easier #28760
Labels
Comments
My proposal is to provide this syntax sugar:
|
pjebs
changed the title
Go 2: Make it easier to set pointer variables
Go 2: Make life easier
Nov 13, 2018
I see this dummy variable style absolutely everywhere in goland. It is annoying. My doctor has given me a magic pill to minimise my migraines due being stuck between a rock and a hard place. |
I've created https://github.com/rocketlaunchr/igo to demo how it can be used. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Suppose I have a variable:
The recommended way is:
This is annoying. Having to create dummy variables just to do this.
There is also an "apparent" inconsistency (despite following similar semantics to above):
The text was updated successfully, but these errors were encountered: