Skip to content
Discussion options

You must be logged in to vote

"modular variables" - your words - are just namespaced globals.

They have all the same problems that full globals do, just slightly narrowed due to the namespacing.

Yes, they are simpler to use, but oh, so much harder to debug, since they can be modified from anywhere in the code.

Replies: 8 comments 21 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@gchumillas
Comment options

@ghost
Comment options

Answer selected by gchumillas
Comment options

You must be logged in to vote
4 replies
@JalonSolov
Comment options

@jorgeluismireles
Comment options

@JalonSolov
Comment options

@JalonSolov
Comment options

Comment options

You must be logged in to vote
3 replies
@jorgeluismireles
Comment options

@ghost
Comment options

@jorgeluismireles
Comment options

Comment options

You must be logged in to vote
1 reply
@jorgeluismireles
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
11 replies
@JalonSolov
Comment options

@ghost
Comment options

@JalonSolov
Comment options

@JalonSolov
Comment options

@ghost
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
6 participants