Skip to content

Update variables concept docs#3130

Open
BNAndras wants to merge 7 commits intoexercism:mainfrom
BNAndras:update-variables-concept
Open

Update variables concept docs#3130
BNAndras wants to merge 7 commits intoexercism:mainfrom
BNAndras:update-variables-concept

Conversation

@BNAndras
Copy link
Copy Markdown
Member

Related to #3042

@IsaacG IsaacG added x:action/improve Improve existing functionality/content x:module/concept Work on Concepts x:type/content Work on content (e.g. exercises, concepts) x:size/medium Medium amount of work x:rep/medium Medium amount of reputation labels Apr 28, 2026
Comment thread concepts/variables/introduction.md Outdated
Comment thread concepts/variables/introduction.md Outdated

Invoking a function is done by specifying the function name and passing arguments for each of the function's parameters.
A variable in Go always has a value.
If no initial value is set at declaration, Go provides one, a zero value, based on the variable type.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
If no initial value is set at declaration, Go provides one, a zero value, based on the variable type.
If no initial value is set at declaration, Go provides one, a zero value, based on the variable type.
(There is a later concept all about zero values.)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll update this tomorrow. I suspect we don't need the second sentence if I just link directly to the zero value concept on Exercism.

"blurb": "TODO: add blurb",
"authors": ["ErikSchierboom"],
"contributors": []
"blurb": "Declare variables, assign values, and understand how Go uses variable types.",
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not convinced the concept covers how Go uses variable types so this blurb should be workshopped more. Nothing is coming to mind though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

x:action/improve Improve existing functionality/content x:module/concept Work on Concepts x:rep/medium Medium amount of reputation x:size/medium Medium amount of work x:type/content Work on content (e.g. exercises, concepts)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants