-
Notifications
You must be signed in to change notification settings - Fork 18k
Go 2: Make life easier #28760
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
Comments
My proposal is to provide this syntax sugar:
|
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. |
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: