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

Re: OT: Why is C so popular?



At 2003-08-28T19:56:49Z, Steve Lamb <grey@dmiyu.org> writes:

> EG these are wrong:
>
> C:
> if foo
>     bar;

I agree.  When I was learning C, I was taught to *always* use brackets, even
when they weren't necessarily, specifically to make it easier to expand:

  if (foo)
  {
    bar;
  }

into

  if (foo)
  {
    bar;
    baz;
  }

should the need arise.  Seeing non-bracketed expressions like that
fundamentally bothers me.
-- 
Kirk Strauser

Attachment: pgpClzNiNKUv9.pgp
Description: PGP signature


Reply to: