Open ghost opened 7 years ago
We could limit the length of a variable name to around 3 characters. After all, simplicity is the essence of Python.
That would break a lot of our example code library.
Damn, you're right. It's difficult to force a naming convention for the actual language,if that's what you're proposing.
Most languages have a naming convention; it's virtually impossible to enforce, but publishing the naming convention and using it in all the example code and standard libraries will cause most programmers to use it.
We should have a naming convention. One idea I've been toying with for a bit is that absolutely everything uses PascalCase (except primitive types and
$self
, which use camelCase), with a strict prohibition on doing anything to indicate what an identifier refers to.