Skip to content
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

Avoid the use of global variables #12

Open
ivanhercaz opened this issue Jan 31, 2019 · 0 comments
Open

Avoid the use of global variables #12

ivanhercaz opened this issue Jan 31, 2019 · 0 comments
Labels
minor Interesting, but less important among the others.

Comments

@ivanhercaz
Copy link
Owner

Minor issue to remember that I should learn a way to avoid the creation of global variables that are going to be modified internally, as:

dataIndex = -1

Modified in:

global dataIndex
dataIndex += 1

@ivanhercaz ivanhercaz added the minor Interesting, but less important among the others. label Jan 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
minor Interesting, but less important among the others.
Projects
None yet
Development

No branches or pull requests

1 participant