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

02-loop.md file - explanation of loop variable names does not mention limitations on the names #364

Open
sgenie68 opened this Issue Mar 27, 2017 · 2 comments

Comments

Projects
None yet
3 participants
@sgenie68

sgenie68 commented Mar 27, 2017

What's in a name? part mentions that any name can be used as a loop variable. IMHO it is worthwhile mentioning here that there are certain rules and limitations on naming the variables even if these rules and limitations are mentioned someplace else. An important thing to consider would be case sensitivity, for one. Also, the scope of a loop variable would be worthwhile mentioning, too - it may lead to confusions.

@aliceminotto

This comment has been minimized.

aliceminotto commented Apr 27, 2017

Also the list named 'list' is confusing as it's a key word, and it's not explained in the material. what about renaming to element_list, or elements?

rgaiacs pushed a commit to rgaiacs/swc-python-novice-inflammation that referenced this issue May 6, 2017

@amjames

This comment has been minimized.

Contributor

amjames commented Sep 26, 2017

+1 for introducing the concept of reserved words/tokens.

Also, @aliceminotto FYI the variable named list has been renamed so it is no longer conflicting with a reserved word (see d7c4b61 )

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