Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it a good idea to define variable names with utf-8 characters? [closed]

Of course this question is only relevant to programming languages that allow utf-8 characters in variable names (eg. python3, golang...)

When I need to write some code from scientific papers, I have the temptation to write that kind of code :

θ = 1.

When a lot of variable are involved, I think that this code might be clearer and easier to read because the variable has the same name in the code and in the paper. Of course it is much harder to write because the character is not on the keyboard.

What do you think of that idea? What would be your reaction if you were reading that code?

like image 845
yansal Avatar asked Oct 17 '25 15:10

yansal


1 Answers

I believe if the utf-8 characters works fine in variable names, then if using variable names with utf-8 characters can improve the readability of the program, just use it.

like image 127
lkkeepmoving Avatar answered Oct 20 '25 23:10

lkkeepmoving