Re: Separators inside a var name

2008-06-10 Thread Sebastian "lunar" Wiesner
Rainy <[EMAIL PROTECTED]> at Dienstag 10 Juni 2008 02:53: > Well, I agree, this is terrible. If I were Guido I'd > make a very explicit rule that a certain naming > scheme is preferred and other schemes are very bad. FWIW, there is a preferred naming scheme outlined in PEP 8. -- Freedom is alw

Re: Separators inside a var name

2008-06-10 Thread Sebastian "lunar" Wiesner
[EMAIL PROTECTED] <[EMAIL PROTECTED]> at Montag 09 Juni 2008 23:39: > On 9 juin, 20:05, "Sebastian \"lunar\" Wiesner" > <[EMAIL PROTECTED]> wrote: >> Rainy <[EMAIL PROTECTED]> at Montag 09 Juni 2008 19:29: >> > (snip) >> > From what I understand, scheme can have variables like var-name. I'm >> >

Re: Separators inside a var name

2008-06-10 Thread MRAB
On Jun 10, 6:59 am, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: > On Mon, 9 Jun 2008 17:53:58 -0700 (PDT), Rainy <[EMAIL PROTECTED]> > declaimed the following in comp.lang.python: > > > > > This is actually pretty nice. I think I like this much better > > than C/Java/etc convention. I wouldn't use

Re: Separators inside a var name

2008-06-09 Thread Kam-Hung Soh
Rainy wrote: I have a stylistic question. In most languages words in var. name are separated by underscores or cap letters, resulting in var names like var_name, VarName and varName. I don't like that very much because all 3 ways of naming look bad and/or hard to type. From what I understand, sch

Re: Separators inside a var name

2008-06-09 Thread Rainy
On Jun 9, 5:34 pm, Alexander Schmolck <[EMAIL PROTECTED]> wrote: > Rainy <[EMAIL PROTECTED]> writes: > > I have a stylistic question. In most languages words in var. name are > > separated by underscores or cap letters, resulting in var names like > > var_name, VarName and varName. I don't like tha

Re: Separators inside a var name

2008-06-09 Thread Rainy
On Jun 9, 5:45 pm, Lie <[EMAIL PROTECTED]> wrote: > > As Sebastian have said, it just can't work like that in python and > most languages. var1-var2 is a subtraction, because - is an operator. > Operator must allow spaces and lack of spaces, how would you want > these to be interpreted then: a+b,

Re: Separators inside a var name

2008-06-09 Thread Lie
On Jun 10, 3:38 am, Rainy <[EMAIL PROTECTED]> wrote: > On Jun 9, 2:05 pm, "Sebastian \"lunar\" Wiesner" > > <[EMAIL PROTECTED]> wrote: > >  Rainy <[EMAIL PROTECTED]> at Montag 09 Juni 2008 19:29: > > > > I have a stylistic question. In most languages words in var. name are > > > separated by unders

Re: Separators inside a var name

2008-06-09 Thread [EMAIL PROTECTED]
On 9 juin, 20:05, "Sebastian \"lunar\" Wiesner" <[EMAIL PROTECTED]> wrote: > Rainy <[EMAIL PROTECTED]> at Montag 09 Juni 2008 19:29: > (snip) > > From what I understand, scheme can have variables like var-name. I'm > > curious about reasons that python chose to disallow this. > > "-" is an operato

Re: Separators inside a var name

2008-06-09 Thread Alexander Schmolck
Rainy <[EMAIL PROTECTED]> writes: > I have a stylistic question. In most languages words in var. name are > separated by underscores or cap letters, resulting in var names like > var_name, VarName and varName. I don't like that very much because all > 3 ways of naming look bad and/or hard to type.

Re: Separators inside a var name

2008-06-09 Thread Rainy
On Jun 9, 2:05 pm, "Sebastian \"lunar\" Wiesner" <[EMAIL PROTECTED]> wrote: >  Rainy <[EMAIL PROTECTED]> at Montag 09 Juni 2008 19:29: > > > I have a stylistic question. In most languages words in var. name are > > separated by underscores or cap letters, resulting in var names like > > var_name, V

Re: Separators inside a var name

2008-06-09 Thread Roger Miller
On Jun 9, 7:29 am, Rainy <[EMAIL PROTECTED]> wrote: > ... Another question I have is what > other languages allow this naming scheme? The most widely used such language would probably be COBOL, where you write things like SUBTRACT DISCOUNT FROM LIST-PRICE GIVING AMOUNT-DUE I doubt that syntax

Re: Separators inside a var name

2008-06-09 Thread Sebastian "lunar" Wiesner
Rainy <[EMAIL PROTECTED]> at Montag 09 Juni 2008 19:29: > I have a stylistic question. In most languages words in var. name are > separated by underscores or cap letters, resulting in var names like > var_name, VarName and varName. I don't like that very much because all > 3 ways of naming look b

Re: Separators inside a var name

2008-06-09 Thread Rainy
On Jun 9, 1:42 pm, Gary Herron <[EMAIL PROTECTED]> wrote: > Rainy wrote: > > I have a stylistic question. In most languages words in var. name are > > separated by underscores or cap letters, resulting in var names like > > var_name, VarName and varName. I don't like that very much because all > >

Re: Separators inside a var name

2008-06-09 Thread Gary Herron
Rainy wrote: I have a stylistic question. In most languages words in var. name are separated by underscores or cap letters, resulting in var names like var_name, VarName and varName. I don't like that very much because all 3 ways of naming look bad and/or hard to type. From what I understand, sch