Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Should I avoid using unicode in names of variables?

Hello, Sage community!

Since Sage now supports Python 3, the possibility of using tildes and other unicode letters in names of variables is real. For example, I could define a constant Gauß instead of Gauss (with a "ß" instead of "ss"); or I could define a function called Müller (with two dots over the "u"). In Spanish and other languages, this is a more pressing matter. If I defined a function design(howMany), in Spanish it would be diseño(cuántos).

However, it seems quite strange to have tildes, betas, etc. in variable names. Is it a good programming behavior to avoid this kind of names?, or, should I use them sparely?

Thanks in advance!