-
-
Notifications
You must be signed in to change notification settings - Fork 41
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
Suggested correction to explanatory text for exercise 14 #9
Comments
I'm a bit on the fence with the idea of adding anonymous scopes as that is a feature that may catch some off guard. Maybe we can change the comment: // The above for loop will iterate from 0 to 10.
// The following single-condition for statement
// will also perform the same operations: This sound good? |
It does |
SRNissen
added a commit
to SRNissen/gopherlings
that referenced
this issue
Jun 26, 2023
The two loops are not quite the same (the scope of var i is different) so let's avoid telling beginning learners that they are "identical"
soypat
pushed a commit
that referenced
this issue
Jun 26, 2023
* Issue #9 Correction to explanatory text The two loops are not quite the same (the scope of var i is different) so let's avoid telling beginning learners that they are "identical" * #10 I am still going Added comment "// I AM STILL GOING" for the "gopherlings watch" program * #11 Gopherlings watch skips past exercises 031 and 032
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The current text is technically false. As of today, it is written:
which would leave
i
in scope after the loop block, which is true in some languages but not here.Proposed change
The exercise text could instead be
The text was updated successfully, but these errors were encountered: