[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: OT: Why is C so popular?



On Wed, Aug 27, 2003 at 11:55:23PM -0700, Steve Lamb wrote:
> On Wed, 27 Aug 2003 23:52:35 -0600
> Jacob Anawalt <jacob@cachevalley.com> wrote:
> > It _seems_ to work for me to convert someone elses sytle (or lack of it) 
> > in coding C into a format that I like (K&R).
> 
>     It boils down to this.  In Python if I want something to be in a block, I
> smack tab and don't even need to worry about my editor doing the right thing. 
> I tell it to set tab stops to 4, save all spaces and how the code is written

The biggest problem working with python ident sysntax is when one comes
over someones elses code and it;s intended like shit. If this happen in
C, :0=G and it's possible to read, if we have the same situation in
Pyhton I have to think. Also my editor doesn't support % for python, it
can't autofold python and so on a loot of good things that i have in
most languanges are just not there in Python. 

> it is a matter of block delimiter placement.  Some people prefer to have the
> block delimiters separate of the line that starts the block.  Some prefer the

There is a nice program to fix this it's called indent...

>     3 different styles.  But remove the damnedable braces and what are you
> left with?
> 
> if cond
>     block
> else
>     block
> 
>     Hence it is not other people's style I dislike, it is the freakin' braces.

So:

if test: do first
else: do other

isn't good any more, there is still differences and different ideas...
It's just not the same ones. 

/ Balp
-- 
      o_   Anders Arnholm,               HiQ - Consultant
 o/  /\    anders@arnholm.nu             Phone  : +46-703-160969
/|_, \\    http://anders.arnholm.nu/     http://www.hiq.se
/
`

Attachment: pgp81_qwiQ8rq.pgp
Description: PGP signature


Reply to: