Explain that using native language identifiers
improves code clarity and maintainability.
This commit is contained in:
parent
fd83b47657
commit
ae26a8cde2
13
pep-3131.txt
13
pep-3131.txt
|
@ -20,11 +20,14 @@ Cyrillic, Greek, Kanji, etc.) in Python identifiers.
|
|||
Rationale
|
||||
=========
|
||||
|
||||
Python code is written by many people in the world who are not familiar with the
|
||||
English language, or even well-acquainted with the Latin writing system. Such
|
||||
developers often desire to define classes and functions with names in their
|
||||
native languages, rather than having to come up with an (often incorrect)
|
||||
English translation of the concept they want to name.
|
||||
Python code is written by many people in the world who are not
|
||||
familiar with the English language, or even well-acquainted with the
|
||||
Latin writing system. Such developers often desire to define classes
|
||||
and functions with names in their native languages, rather than having
|
||||
to come up with an (often incorrect) English translation of the
|
||||
concept they want to name. By using identifiers in their native
|
||||
language, code clarity and maintainability of the code among
|
||||
speakers of that language improves.
|
||||
|
||||
For some languages, common transliteration systems exist (in particular, for the
|
||||
Latin-based writing systems). For other languages, users have larger
|
||||
|
|
Loading…
Reference in New Issue