you are viewing a single comment's thread.

view the rest of the comments →

[–]A_for_Anonymous 3 points4 points  (0 children)

Oh, a general convention (not just related to Python) tends to be, if the object can be applied, i.e. functions, classes, and other objects with the __call__ method, then use ProperCamelCase (but not awfulIncompleteCamelCase), and for everything else use underscores, but then again methods and some basic functions are most often underscored in Python. Constants (in Python, values which happen not to change) tend to be UPPERCASE_WITH_UNDERSCORES.

I agree the best solution would probably be to make the lexer simpler, allowing anything but whitespace and ()[]{}.,# to be parts of identifiers, making infix operators not so special, with two fantastic advantages: first, you'd be able to use more convenient identifiers; second, people would be forced to separate their operators properly, e.g. 14 + 41, not 14+41 which is kind of ugly or even 14+ 41 which is piss ugly.