in reply to Re: Coding superstitions
in thread Coding superstitions
where mstone does this...
...in my code anyhow. My office is a pig sty.
mrbbking does this...@list = ( 'item one', 'item two', 'item three', ## <- unnecessary punctuation );
I picked up this particular habit from some IBM Mainframe DBAs. With the comma on the same line as the thing that comes after it, I can comment out any line of the array assignment and the whole thing is still syntactically valid. I like to keep things as clean as I can.@list = ( 'item one' ,'item two' ,'item three' );
...in my code anyhow. My office is a pig sty.
...wait a minute... if mstone can get away with an extra trailing comma, then I guess I could comment out the last line of the assigment, and the trailing comma wouldn't cause a problem...
...so this is all in my head... Oh, boy...
|
---|
Replies are listed 'Best First'. | |
---|---|
Re (tilly) 3: Coding superstitions
by tilly (Archbishop) on Jan 08, 2002 at 07:06 UTC | |
Re: Re: Re: Coding superstitions
by NoobJW (Initiate) on Jan 10, 2002 at 01:44 UTC |
In Section
Meditations