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

Re: OT: Why is C so popular?



Quoting Mark Roach <mrroach@okmaybe.com>:
> if you'll settle for optional bracketing, I think python might be for
> you ;-)
> 
> if cond:
> # {
>     block
> # }
> else:
> # {
>     block
> # }
> 

Compare it with SUN's recomendations for Java (but useable also for C):
if (cond) {
    block;
} else {
    block;
}

In this case I find it much better than the GNU Coding Standards, and there is
only one line more than Python...

    François.

-- 
Francois BOTTIN
--
    "How kind," the PFY sighs. "But where will I go?" 
    "Somewhere where they know nothing about computing...
where they wouldn't know a RAM chip from a potato chip!" 
    "But I don't want to visit Microsoft!" he whines.
              The BOFH 1998 - Simon Travaglia (bofh.ntk.net)



Reply to: