1.

Why Some Programmers Avoid Global Variables While Using Julia? What Is The Better Alternative According To You?

Answer»

ALTHOUGH the global variables are good enough to be trusted, the biggest ISSUE with them is their value and types both changes frequently. Of course, this leads to code optimization problems. Later these issues make it very difficult for the USERS to test the code and make it OS independent. Thus, the better option is to use the local variables. Julia supports almost every local variable and LET you COME with similar quality even if all the variables used are local than global.

Although the global variables are good enough to be trusted, the biggest issue with them is their value and types both changes frequently. Of course, this leads to code optimization problems. Later these issues make it very difficult for the users to test the code and make it OS independent. Thus, the better option is to use the local variables. Julia supports almost every local variable and let you come with similar quality even if all the variables used are local than global.



Discussion

No Comment Found