If i dont recall bad i always hear and read “Dont user global variables!!!” or “yes, you can but try to avoid!”
Now im seeing some codes for Arduino that are writing in C++ (yep, another language)… and here i see that people use a lot of global variables without problems.
This is just because is c++ or because is arduino, or i get wrong the idea about global variables?
Thanks!
submitted by /u/9acca9
[link] [comments]
r/learnpython If i dont recall bad i always hear and read “Dont user global variables!!!” or “yes, you can but try to avoid!” Now im seeing some codes for Arduino that are writing in C++ (yep, another language)… and here i see that people use a lot of global variables without problems. This is just because is c++ or because is arduino, or i get wrong the idea about global variables? Thanks! submitted by /u/9acca9 [link] [comments]
If i dont recall bad i always hear and read “Dont user global variables!!!” or “yes, you can but try to avoid!”
Now im seeing some codes for Arduino that are writing in C++ (yep, another language)… and here i see that people use a lot of global variables without problems.
This is just because is c++ or because is arduino, or i get wrong the idea about global variables?
Thanks!
submitted by /u/9acca9
[link] [comments]